summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBet42021-08-15 22:38:54 +0800
committerBet42021-08-15 22:38:54 +0800
commit1ae45a3976c4cdc937ee4c5817010a5be7b729a2 (patch)
tree533212bd16698d2b257ac353b842260d170fb570 /PKGBUILD
downloadaur-gitbatch.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..151950d8d97a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Bet4 <0xbet4@gmail.com>
+
+pkgname=gitbatch
+pkgver=0.6.1
+pkgrel=1
+pkgdesc="Manage your git repositories in one place"
+arch=("x86_64")
+url="https://github.com/isacikgoz/gitbatch"
+license=("MIT")
+makedepends=("go")
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+sha256sums=('0ef36a4ea0b6cf4beb51928dd51281ec106006ba800c439d2588515c1bfeaf41')
+
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ export CGO_LDFLAGS="$LDFLAGS"
+ export CGO_CFLAGS="$CFLAGS"
+ export CGO_CXXFLAGS="$CXXFLAGS"
+ export CGO_CPPFLAGS="$CPPFLAGS"
+ export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
+ go build -o ${pkgname} ./cmd/...
+}
+
+package(){
+ cd "${pkgname}-${pkgver}"
+ install -Dm755 ${pkgname} "$pkgdir"/usr/bin/$pkgname
+}