blob: b7f0b6cd48c1ff7b78a0597cc4f9af56c1ce1474 (
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
|
# Maintainer: Alva <a at u8 dot is>
_pkgbasename=passphrase
pkgname=${_pkgbasename}-git
pkgrel=4
pkgver=r11.0faa7ba
pkgdesc="Small, simple passphrase generator, written in Zig"
arch=('any')
url="https://git.sr.ht/~alva/${_pkgbasename}"
license=('MIT')
makedepends=('zig>=0.6.0' 'git')
source=(git+https://git.sr.ht/~alva/${_pkgbasename})
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgbasename}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
check() {
cd "${srcdir}/${_pkgbasename}"
zig build test
}
package() {
cd "${srcdir}/${_pkgbasename}"
zig build install -Drelease-fast --prefix "${pkgdir}/usr"
}
|