Files
main/programming/scm/github-cli/actions.py
T
Kamil ATLI 4d19fad23d github-cli
2025-03-22 14:47:35 +03:00

21 lines
654 B
Python

#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def build():
shelltools.system("go build \
-trimpath \
-ldflags '-extldflags \"%s\" -X github.com/cli/cli/command.Version=v2.69.0 -X github.com/cli/cli/command.BuildDate=2025-03-22' \
-o 'bin/gh' ./cmd/gh" % get.LDFLAGS())
def install():
shelltools.cd("../cli-2.68.0")
pisitools.insinto("/usr/bin", "bin/gh")
pisitools.dodoc("LICENSE", "README*")