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

Morten Linderud foxboron at archlinux.org
Thu Mar 12 18:26:08 UTC 2020


    Date: Thursday, March 12, 2020 @ 18:26:08
  Author: foxboron
Revision: 595385

upgpkg: fzf 0.21.0-1

Modified:
  fzf/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-12 18:22:35 UTC (rev 595384)
+++ PKGBUILD	2020-03-12 18:26:08 UTC (rev 595385)
@@ -8,8 +8,8 @@
 # Contributor: jebaum <jebaum at ucla dot edu>
 
 pkgname=fzf
-pkgver=0.20.0
-pkgrel=4
+pkgver=0.21.0
+pkgrel=1
 pkgdesc='Command-line fuzzy finder'
 arch=('x86_64')
 url='https://github.com/junegunn/fzf'
@@ -20,25 +20,24 @@
             'tmux: fzf-tmux script for launching fzf in a tmux pane'
             'vim: plugin'
             'zsh: zsh keybindings')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
-        "git+$url.wiki")
-sha512sums=('a65294d29c59353d17468a919878f965934540eea27441292a7219aea7509c18ea31ed1d58453f890a43026e4ae58946e0122d49475e734bd9354a0e520d99e7'
-            'SKIP')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('8c3b7eb14ac98b386c26bd6621c54a27e904985f2e87c37ae8f31c3596196f32a817be17aa5e7dd399757cb90b5f25c35ce4a240453eb28f7d1d2fd837d8900d')
 
 build() {
 	cd $pkgname-$pkgver
-
+	export CGO_LDFLAGS="$LDFLAGS"
+	export GOFLAGS="-buildmode=pie -trimpath"
 	go build -o fzf .
 }
 
+check() {
+	cd $pkgname-$pkgver
+	go test ./...
+}
+
 package() {
 	cd $pkgname-$pkgver
 
-	## Doc
-	install -dm755 "$pkgdir"/usr/share/doc/fzf/wiki
-	install -m644 "$srcdir"/fzf.wiki/* "$pkgdir"/usr/share/doc/fzf/wiki
-	install -m644 README.md "$pkgdir"/usr/share/doc/fzf
-
 	## Man page
 	install -Dm644 man/man1/fzf.1 "$pkgdir"/usr/share/man/man1/fzf.1
 



More information about the arch-commits mailing list