blob: 70a479d9b72aaa8ba3b2702a9afe161ef0e6c5aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Contributor: Kevin Daudt <ops@ikke.info>
# Maintainer: Kevin Daudt <ops@ikke.info>
pkgname=fzf
pkgver="0.17.3"
pkgrel=1
pkgdesc="A command-line fuzzy finder"
url="https://github.com/junegunn/fzf"
arch="x86 x86_64"
license="MIT"
makedepends="go glide bash tmux"
subpackages="$pkgname-tmux::noarch $pkgname-extras::noarch"
source="$pkgname-$pkgver.tar.gz::https://github.com/junegunn/fzf/archive/$pkgver.tar.gz
no-glide-install.patch
disable-vet-for-tests.patch"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
default_prepare
export GOPATH="$startdir"
glide install
}
build() {
cd "$builddir"
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
# Just copies the target binary to $buildir/bin
make install
install -Dm0755 bin/fzf "$pkgdir"/usr/bin/fzf
}
tmux() {
depends="tmux bash"
description="Helper script to start fzf in a tmux pane"
cd "$builddir"
install -Dm0755 bin/fzf-tmux "$subpkgdir"/usr/bin/fzf-tmux
}
extras() {
description="additional scripts like shell completion and keybindings"
cd "$builddir"
install -dm0755 "$subpkgdir"/usr/share/fzf
install -m0644 shell/*.$1 "$subpkgdir"/usr/share/fzf
}
sha512sums="2713ef7adb0dd278ac0a0c362c5cd23e7b0f1867efdfa964ad1f63f48c7f518e0cf96cc0b2571487585a0271fb0d2398edfebdbe603ec2bb42d3bd87febd2156 fzf-0.17.3.tar.gz
daa16985079e3b55ccf5e74dde356e1e13e43865c9809e432b5d272b053f541f1eacd402f3b04957ee855fb8c0ca1820b507d08e408f55dc80004990a949874c no-glide-install.patch
e58121867dbf06ce8a66ffe77b0a17a572833cc5c94ab73761f631908f8106eed9e0bd69fd0ca47127c64dda43086a4ea908b61daa2e75fa0dc7f5274a6b98cc disable-vet-for-tests.patch"
|