[arch-commits] Commit in glab/repos/community-x86_64 (PKGBUILD PKGBUILD)

Caleb Maclennan alerque at gemini.archlinux.org
Mon Aug 22 11:33:13 UTC 2022


    Date: Monday, August 22, 2022 @ 11:33:12
  Author: alerque
Revision: 1274672

archrelease: copy trunk to community-x86_64

Added:
  glab/repos/community-x86_64/PKGBUILD
    (from rev 1274671, glab/trunk/PKGBUILD)
Deleted:
  glab/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   98 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 49 insertions(+), 49 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-22 11:33:03 UTC (rev 1274671)
+++ PKGBUILD	2022-08-22 11:33:12 UTC (rev 1274672)
@@ -1,49 +0,0 @@
-# Maintainer: Caleb Maclennan <caleb at alerque.com>
-# Contributor: w0rty <mawo97 at gmail.com>
-# Contributor: Abdo Roig-Maranges <abdo.roig at gmail.com>
-
-pkgname=glab
-pkgver=1.22.0
-pkgrel=2
-pkgdesc='Cli tool to help work seamlessly with Gitlab from the command line'
-arch=(x86_64)
-url="https://github.com/profclems/$pkgname"
-license=(MIT)
-depends=(glibc)
-makedepends=(go)
-replaces=(gitlab-glab)
-options=(!lto)
-_archive="$pkgname-$pkgver"
-source=("$url/archive/v$pkgver/$_archive.tar.gz")
-sha256sums=('4b700d46cf9ee8fe6268e7654326053f4366aa3e072b5c3f3d243930a6e89edc')
-
-build() {
-	cd "$_archive"
-	export CGO_CPPFLAGS="$CPPFLAGS"
-	export CGO_CFLAGS="$CFLAGS"
-	export CGO_CXXFLAGS="$CXXFLAGS"
-	export CGO_LDFLAGS="$LDFLAGS"
-	_builddate=${SOURCE_DATE_EPOCH=:$(date -u +%m/%d/%Y)}
-	go build \
-		-trimpath \
-		-buildmode=pie \
-		-ldflags "-linkmode=external -extldflags \"$LDFLAGS\" -X main.version=v$pkgver -X main.build=$_builddate -X main.usageMode=prod -s -w" \
-		-mod=readonly \
-		-modcacherw \
-		-o "$pkgname" \
-		./cmd/glab/main.go
-	go run ./cmd/gen-docs/docs.go --manpage --path ./
-	for s in bash fish zsh; do
-		./$pkgname completion -s $s > $s.completions
-	done
-}
-
-package() {
-	cd "$_archive"
-	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
-	install -Dm0755 -t "$pkgdir/usr/bin/" "$pkgname"
-	install -Dm0644 -t "$pkgdir/usr/share/man/man1/" "$pkgname.1"
-	install -Dm0644 bash.completions "$pkgdir/usr/share/bash-completion/completions/$pkgname"
-	install -Dm0644 fish.completions "$pkgdir/usr/share/fish/vendor_completions.d/$pkgname.fish"
-	install -Dm0644  zsh.completions "$pkgdir/usr/share/zsh/site-functions/_$pkgname"
-}

Copied: glab/repos/community-x86_64/PKGBUILD (from rev 1274671, glab/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-22 11:33:12 UTC (rev 1274672)
@@ -0,0 +1,49 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: w0rty <mawo97 at gmail.com>
+# Contributor: Abdo Roig-Maranges <abdo.roig at gmail.com>
+
+pkgname=glab
+pkgver=1.22.0
+pkgrel=3
+pkgdesc='Cli tool to help work seamlessly with Gitlab from the command line'
+arch=(x86_64)
+url="https://github.com/profclems/$pkgname"
+license=(MIT)
+depends=(glibc)
+makedepends=(go)
+replaces=(gitlab-glab)
+options=(!lto)
+_archive="$pkgname-$pkgver"
+source=("$url/archive/v$pkgver/$_archive.tar.gz")
+sha256sums=('4b700d46cf9ee8fe6268e7654326053f4366aa3e072b5c3f3d243930a6e89edc')
+
+build() {
+	cd "$_archive"
+	export CGO_CPPFLAGS="$CPPFLAGS"
+	export CGO_CFLAGS="$CFLAGS"
+	export CGO_CXXFLAGS="$CXXFLAGS"
+	export CGO_LDFLAGS="$LDFLAGS"
+	_builddate=${SOURCE_DATE_EPOCH=:$(date -u +%m/%d/%Y)}
+	go build \
+		-trimpath \
+		-buildmode=pie \
+		-ldflags "-linkmode=external -extldflags \"$LDFLAGS\" -X main.version=v$pkgver -X main.build=$_builddate -X main.usageMode=prod -s -w" \
+		-mod=readonly \
+		-modcacherw \
+		-o "$pkgname" \
+		./cmd/glab/main.go
+	go run ./cmd/gen-docs/docs.go --manpage --path ./
+	for s in bash fish zsh; do
+		./$pkgname completion -s $s > $s.completions
+	done
+}
+
+package() {
+	cd "$_archive"
+	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+	install -Dm0755 -t "$pkgdir/usr/bin/" "$pkgname"
+	install -Dm0644 -t "$pkgdir/usr/share/man/man1/" "$pkgname"*.1
+	install -Dm0644 bash.completions "$pkgdir/usr/share/bash-completion/completions/$pkgname"
+	install -Dm0644 fish.completions "$pkgdir/usr/share/fish/vendor_completions.d/$pkgname.fish"
+	install -Dm0644  zsh.completions "$pkgdir/usr/share/zsh/site-functions/_$pkgname"
+}



More information about the arch-commits mailing list