blob: 54ac2e6dce73498cc85b6b65d172492a3ca52689 (
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.9.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=('61a4db245213f0319dfb34758f5c9c00d4945d7ae6187a6220e88ebef95e4494')
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"
}
|