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

Morten Linderud foxboron at archlinux.org
Sun May 6 14:14:26 UTC 2018


    Date: Sunday, May 6, 2018 @ 14:14:26
  Author: foxboron
Revision: 319018

upgpkg: fzf 0.17.3-2

Properly build fzf from pkgver instead of master

Modified:
  fzf/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-06 12:52:01 UTC (rev 319017)
+++ PKGBUILD	2018-05-06 14:14:26 UTC (rev 319018)
@@ -7,13 +7,13 @@
 
 pkgname=fzf
 pkgver=0.17.3
-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-pie" "glide")
 optdepends=("fish: fish keybindings"
 	"tmux: fzf-tmux script for launching fzf in a tmux pane"
 	"vim: plugin"
@@ -23,9 +23,19 @@
 sha256sums=('e843904417adf926613431e4403fded24fade56269446e92aac6ff1db86af81e'
             'SKIP')
 
+
+prepare(){
+	export GOPATH="$srcdir/go"
+	mkdir -p $GOPATH/src/github.com/junegunn
+	ln -rTsf "${srcdir}/${pkgname}-${pkgver}" $GOPATH/src/github.com/junegunn/fzf
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	glide up
+}
+
 build() {
+	export GOPATH="$srcdir/go"
 	cd "${srcdir}/${pkgname}-${pkgver}"
-    GOPATH="$srcdir" TMPDIR=/tmp go get -u github.com/junegunn/fzf/...
+	go build -o fzf .
 }
 
 package() {
@@ -44,7 +54,7 @@
 
 	## Binaries
 	install -dm755 "$pkgdir/usr/bin"
-	install -m755 "$srcdir/bin/fzf" "bin/fzf-tmux" "$pkgdir/usr/bin/"
+	install -m755 "fzf" "bin/fzf-tmux" "$pkgdir/usr/bin/"
 
 	## Completion and keybindings
 	install -dm755 "$pkgdir/usr/share/fzf"



More information about the arch-commits mailing list