diff options
author | Richard Bradfield | 2020-02-16 13:31:24 +0000 |
---|---|---|
committer | Richard Bradfield | 2020-02-16 13:31:24 +0000 |
commit | 10081320f15690cddfcd3685f77c91bd05bb3b79 (patch) | |
tree | e6b40dd187abab9a5165ef3ab8b2875feb3aee8a /PKGBUILD | |
parent | 64d154de8627eda28d041db24a099f57f03388e6 (diff) | |
download | aur-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
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -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" } |