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="
11 go
12 sassc
13 qtc
14 sqlite-dev
15 vips-dev
16"
17depends="
18 ffmpeg
19 vips
20"
21install="$pkgname.pre-install"
22subpackages="$pkgname-openrc"
23source="$pkgname-$_commit.tar.gz::https://git.sr.ht/~gabrielgio/$pkgname/archive/$_commit.tar.gz
24
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="
56143c2305eebbec7a40ff743952efb61c017e4382914852df893a1d79aff59b19ce128d0f0e3e7abc54968ff3832bb61aa083b302c0e328739c1095f40920a40a lens-53e833f3239d670295a8547fce72162707b873c0.tar.gz
57d0601df138e368de4b1972fdeee44a654dd1810574949c80953b162c689288e3177279a67a47b1861d0a8760a804fe0d051f5066f9e2f30b3f1157e3e5d45394 lens.confd
5868d4556eb3ed4acd5cc950a8dc13b407745f7d62a8cb1ecb7ceb6fd31c981bc0d48e94da72fe0abab9ad8634c2976172881d04c2dd63b14f86c75696757e2dc3 lens.initd
59"