makedeb
A GitLab CLI tool bringing GitLab to your command line
Click here to go back to the commit logs for glab.
Hash: a527c96f7e9df1323da7e8c8e0f784965c0c4d0a
Message: Simplify build commands
The previous system was also failing to build, so it kind of needed to be moved over anyway.
diff --git a/.SRCINFO b/.SRCINFO
index 9e86291..9e61ca7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,7 +2,7 @@ generated-by = makedeb
pkgname = glab
pkgbase = glab
pkgdesc = A GitLab CLI tool bringing GitLab to your command line
-pkgrel = 1
+pkgrel = 2
pkgver = 1.24.1
url = https://gitlab.com/gitlab-org/cli
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 4b54489..94a9852 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Hunter Wittenborn <hunter@hunterwittenborn.com>
pkgname=glab
pkgver=1.24.1
-pkgrel=1
+pkgrel=2
pkgdesc='A GitLab CLI tool bringing GitLab to your command line'
arch=('any')
makedepends=('golang-go>=2:1.13')
@@ -13,13 +13,13 @@ sha256sums=('SKIP')
build() {
cd "${pkgname}-${pkgver}/"
- go build -trimpath -ldflags "-X main.version=v${pkgver} -X main.debugMode=false" -o "${pkgname}" github.com/profclems/glab/cmd/glab
+ make
}
package() {
cd "${pkgname}-${pkgver}/"
- install -Dm 755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
- "./${pkgname}" completion -s bash | install -Dm 644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
+ install -Dm 755 "bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+ "bin/${pkgname}" completion -s bash | install -Dm 644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
}
# vim: set sw=4 expandtab: