blob: 9f09d51a575afe96b78295a8495d0782b7aef3e3 (
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
|
# Maintainer: Nathan Craddock <contact@nathancraddock.com>
pkgname=zf
pkgver=0.10.2
pkgrel=1
pkgdesc="a commandline fuzzy finder designed for filtering filepaths"
arch=('x86_64')
license=('MIT')
makedepends=('git' 'zig')
provides=(zf)
url="https://github.com/natecraddock/zf"
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('b8e41f942c7033536fd64f9edea467a7ff4f45d52885d585f0adafb7803ac0ed')
build() {
cd "$pkgname-$pkgver"
zig build -Doptimize=ReleaseSafe
}
package() {
cd "$pkgname-$pkgver"
install -D -m755 zig-out/bin/zf "$pkgdir/usr/bin/zf"
install -D -m644 doc/zf.1 "$pkgdir/usr/share/man/man1/zf.1"
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -D -m644 complete/zf "$pkgdir/usr/share/bash-completion/completions/zf"
install -D -m644 complete/_zf "$pkgdir/usr/share/zsh/site-functions/_zf"
install -D -m644 complete/zf.fish "$pkgdir/usr/share/fish/completions/zf.fish"
}
|