[arch-commits] Commit in fzf/trunk (PKGBUILD)

Thore Bödecker foxxx0 at archlinux.org
Thu Jun 4 14:00:34 UTC 2020


    Date: Thursday, June 4, 2020 @ 14:00:31
  Author: foxxx0
Revision: 638916

upgpkg: fzf 0.21.1-2

rebuild using go + proper buildflags, part of go-pie removal rebuild

Modified:
  fzf/trunk/PKGBUILD

----------+
 PKGBUILD |   18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-04 13:59:08 UTC (rev 638915)
+++ PKGBUILD	2020-06-04 14:00:31 UTC (rev 638916)
@@ -9,13 +9,13 @@
 
 pkgname=fzf
 pkgver=0.21.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Command-line fuzzy finder'
 arch=('x86_64')
 url='https://github.com/junegunn/fzf'
 license=('MIT')
 depends=('bash')
-makedepends=('git' 'go-pie')
+makedepends=('git' 'go')
 optdepends=('fish: fish keybindings'
             'tmux: fzf-tmux script for launching fzf in a tmux pane'
             'vim: plugin'
@@ -23,20 +23,24 @@
 source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
 sha512sums=('db816446a2d562148f7bfe4fc99696e0786d4acfe021ba9bf31344c81219b8a61cae03ec7d4b279ab3dba9ca93fc883e655fc71a750fb6f1905612db071ac831')
 
+export CGO_LDFLAGS="${LDFLAGS}"
+export CGO_CFLAGS="${CFLAGS}"
+export CGO_CPPFLAGS="${CPPFLAGS}"
+export CGO_CXXFLAGS="${CXXFLAGS}"
+export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+
 build() {
-	cd $pkgname-$pkgver
-	export CGO_LDFLAGS="$LDFLAGS"
-	export GOFLAGS="-buildmode=pie -trimpath"
+	cd "${pkgname}-${pkgver}"
 	go build -o fzf .
 }
 
 check() {
-	cd $pkgname-$pkgver
+	cd "${pkgname}-${pkgver}"
 	go test ./...
 }
 
 package() {
-	cd $pkgname-$pkgver
+	cd "${pkgname}-${pkgver}"
 
 	## Man page
 	install -Dm644 man/man1/fzf.1 "$pkgdir"/usr/share/man/man1/fzf.1



More information about the arch-commits mailing list