apkbuilds @ 3.20

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