summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Bradfield2020-02-16 13:31:24 +0000
committerRichard Bradfield2020-02-16 13:31:24 +0000
commit10081320f15690cddfcd3685f77c91bd05bb3b79 (patch)
treee6b40dd187abab9a5165ef3ab8b2875feb3aee8a
parent64d154de8627eda28d041db24a099f57f03388e6 (diff)
downloadaur-10081320f15690cddfcd3685f77c91bd05bb3b79.tar.gz
More PKGBUILD clean up
- Remove glibc from makedepends since it's already a runtime dep - Remove the superfluous comment at the top of the PKGBUILD - Fix inconsistent indentation - Use relative paths in the package() stage
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD13
2 files changed, 6 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bc05d3cebdca..33b2f4084851 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,7 +5,6 @@ pkgbase = github-cli
url = https://github.com/cli/cli
arch = x86_64
license = MIT
- makedepends = glibc
makedepends = go-pie
depends = glibc
optdepends = git: To interact with repositories
diff --git a/PKGBUILD b/PKGBUILD
index 39502119f819..44e7e2cec562 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,4 +1,3 @@
-# Source build of the official GitHub CLI
# Maintainer: Richard Bradfield <bradfier@fstab.me>
pkgname=github-cli
@@ -9,21 +8,21 @@ arch=("x86_64")
url="https://github.com/cli/cli"
license=("MIT")
depends=("glibc")
-makedepends=("glibc" "go-pie")
+makedepends=("go-pie")
optdepends=("git: To interact with repositories")
source=("$pkgname-$pkgver.tar.gz::https://github.com/cli/cli/archive/v${pkgver}.tar.gz")
sha256sums=('7c2cfdafe765a598b70b3e6de839590e8fa30a89bedc85799a43bdbc6fd3277e')
build() {
- cd "cli-$pkgver"
+ cd "cli-$pkgver"
go build \
-trimpath \
-ldflags "-extldflags ${LDFLAGS} -X github.com/cli/cli/command.Version=v${pkgver} -X github.com/cli/cli/command.BuildDate=$(date +%Y-%m-%d)" -o "bin/gh" ./cmd/gh
}
package() {
- cd "cli-$pkgver"
- install -Dm755 "${srcdir}/cli-${pkgver}/bin/gh" "${pkgdir}/usr/bin/gh"
- install -Dm644 "${srcdir}/cli-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/github-cli"
- install -Dm644 "${srcdir}/cli-${pkgver}/README.md" "${pkgdir}/usr/share/doc/github-cli/README.md"
+ cd "cli-$pkgver"
+ install -Dm755 "bin/gh" "${pkgdir}/usr/bin/gh"
+ install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/github-cli"
+ install -Dm644 "README.md" "${pkgdir}/usr/share/doc/github-cli/README.md"
}