summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12020-02-19 01:57:56 +0800
committerChocobo12020-02-19 01:57:56 +0800
commit0b2a39c820edf8ca47338e008029bc3d440d2cc5 (patch)
treec4ce45217f5326a9bca180182f381ac416e49fe8
downloadaur-0b2a39c820edf8ca47338e008029bc3d440d2cc5.tar.gz
newpkg: github-cli-git 0.5.5.r25.g48ffd5a-1
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD47
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..3d5a6a178deb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = github-cli-git
+ pkgdesc = The GitHub CLI tool
+ pkgver = 0.5.5.r25.g48ffd5a
+ pkgrel = 1
+ url = https://github.com/cli/cli
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = go-pie
+ depends = glibc
+ optdepends = git: To interact with repositories
+ provides = github-cli
+ conflicts = github-cli
+ options = staticlibs
+ source = git+https://github.com/cli/cli.git
+ sha256sums = SKIP
+
+pkgname = github-cli-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..d9aa30788e36
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=github-cli-git
+pkgver=0.5.5.r25.g48ffd5a
+pkgrel=1
+pkgdesc="The GitHub CLI tool"
+arch=('i686' 'x86_64')
+url="https://github.com/cli/cli"
+license=('MIT')
+depends=('glibc')
+makedepends=('git' 'go-pie')
+optdepends=("git: To interact with repositories")
+provides=('github-cli')
+conflicts=('github-cli')
+options=('staticlibs')
+source=("git+https://github.com/cli/cli.git")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "cli"
+
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "cli"
+
+ go build \
+ -trimpath \
+ -ldflags "-extldflags $LDFLAGS" \
+ ./cmd/gh
+}
+
+check() {
+ cd "cli"
+
+ go test ./...
+}
+
+package() {
+ cd "cli"
+
+ install -Dm755 "gh" -t "$pkgdir/usr/bin"
+ install -Dm644 "README.md" -t "$pkgdir/usr/share/doc/github-cli"
+ install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/github-cli"
+}