apkbuilds @ d06d63c0db0a1408a69124e339fa3efcf47d22f8

 1# Maintainer: Gabriel A. Giovanini <mail@gabrielgio.me>
 2pkgname=lens
 3pkgver=0_git20233106
 4pkgrel=1
 5_commit=53e833f3239d670295a8547fce72162707b873c0
 6pkgdesc="Simple read only file viewer"
 7url="https://sr.ht/~gabrielgio/lens"
 8arch="x86_64"
 9license="AGPL"
10makedepends="go"
11install="$pkgname.pre-install"
12subpackages="$pkgname-openrc"
13source="$pkgname-$_commit.tar.gz::https://git.sr.ht/~gabrielgio/$pkgname/archive/$_commit.tar.gz
14
15	$pkgname.confd
16	$pkgname.initd
17	"
18builddir="$srcdir/$pkgname-$_commit"
19
20build() {
21    make
22}
23
24prepare() {
25	default_prepare
26
27	git clone --depth=1 -b 0.9.4 \
28		https://github.com/jgthms/bulma.git \
29        scss/bulma
30}
31
32check() {
33    make test
34}
35
36package() {
37	install -Dm755 bin/lens "$pkgdir"/usr/bin/lens
38
39	install -dm755 "$pkgdir"/var/lib/lens
40
41	install -Dm755 "$srcdir"/lens.initd "$pkgdir"/etc/init.d/lens
42	install -Dm644 "$srcdir"/lens.confd "$pkgdir"/etc/conf.d/lens
43}
44
45sha512sums="
46143c2305eebbec7a40ff743952efb61c017e4382914852df893a1d79aff59b19ce128d0f0e3e7abc54968ff3832bb61aa083b302c0e328739c1095f40920a40a  lens-53e833f3239d670295a8547fce72162707b873c0.tar.gz
47e9e220ebb25e53ae96d3c170f013806f03133b3c1377f375f9d4d72e84a7ce3b75f93462d2571cd4d6af46aec0913bfd0a8bfb1f38109e6644af5bbf7d56b540  lens.confd
4868d4556eb3ed4acd5cc950a8dc13b407745f7d62a8cb1ecb7ceb6fd31c981bc0d48e94da72fe0abab9ad8634c2976172881d04c2dd63b14f86c75696757e2dc3  lens.initd
49"