summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7629288f5b09d72a8afe8519018b446352fbebf8 (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
# Maintainer: atemmel <temmeladam@gmail.com>
pkgname=spider
pkgrel=1
pkgver=r8.d644ada
pkgdesc="Fast and simple terminal file manager"
arch=('x86_64' 'aarch64' 'i686')
url="https://github.com/atemmel/${pkgname}"
license=('MIT')
depends=(
	'curl'
	'ncurses'
	'tidy'
)
makedepends=('git' 'zig')
source=("git+${url}")
sha256sums=('SKIP')

pkgver(){
	cd "${srcdir}/${_pkgbasename}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "${srcdir}/${pkgname}"
	zig build -Doptimize=ReleaseFast
}

package() {
	cd "${srcdir}/${pkgname}"
	install -D -m755 zig-out/bin/$pkgname "${pkgdir}/usr/bin/${pkgname}"
	install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}