apkbuilds @ c1ed6480b53726b00654310af12ee61c59766af0

 1# Maintainer: Gabriel A. Giovanini <mail@gabrielgio.me>
 2pkgname=lens
 3pkgver=0_git20231001
 4pkgrel=1
 5_commit=91f7c40479aa9ef18c7927913be49a014a8a3115
 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"
20install="$pkgname.pre-install"
21subpackages="$pkgname-openrc"
22source="
23	$pkgname-$_commit.tar.gz::https://git.sr.ht/~gabrielgio/$pkgname/archive/$_commit.tar.gz
24	$pkgname.confd
25	$pkgname.initd
26"
27builddir="$srcdir/$pkgname-$_commit"
28
29build() {
30    make
31}
32
33prepare() {
34	default_prepare
35
36	git clone --depth=1 -b 0.9.4 \
37		https://github.com/jgthms/bulma.git \
38		scss/bulma
39}
40
41check() {
42	make test.unit
43}
44
45package() {
46	install -Dm755 bin/lens "$pkgdir"/usr/bin/lens
47
48	install -dm755 "$pkgdir"/var/lib/lens
49
50	install -Dm755 "$srcdir"/lens.initd "$pkgdir"/etc/init.d/lens
51	install -Dm644 "$srcdir"/lens.confd "$pkgdir"/etc/conf.d/lens
52}
53
54sha512sums="
5594dfd1886c57ade712d30a787a10b03b205eac447e06bb8b0c9e53aaa364ff2f55c0e8e2d395413d7a8db64742f3de7d6f4e48ca789e52b4a812f1eca0db13f1  lens-91f7c40479aa9ef18c7927913be49a014a8a3115.tar.gz
56d0601df138e368de4b1972fdeee44a654dd1810574949c80953b162c689288e3177279a67a47b1861d0a8760a804fe0d051f5066f9e2f30b3f1157e3e5d45394  lens.confd
5783392268213079ce557e6d7d9874b0ccaeabcd2531b009617479dd0c0fb8c83d5ed49a7c6900f3b849f5103c8453c008905255a05b19f19f3ac78b50e7fa3ea0  lens.initd
58"