aboutsummaryrefslogtreecommitdiff
path: root/apks/lens/APKBUILD
blob: 180de7c161e23d8d2c92793954b6f06e53982f1f (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Maintainer: Gabriel A. Giovanini <mail@gabrielgio.me>
pkgname=lens
pkgver=0_git20230825
pkgrel=0
_commit=869f50db2fbc24826762fb61d35e5f8de79296c1
pkgdesc="Simple read only file viewer"
url="https://sr.ht/~gabrielgio/lens"
arch="x86_64"
license="AGPL"
makedepends="
    go 
    sassc
    qtc
    sqlite-dev
    vips-dev
"
depends="
    ffmpeg
    vips
"
install="$pkgname.pre-install"
subpackages="$pkgname-openrc"
source="$pkgname-$_commit.tar.gz::https://git.sr.ht/~gabrielgio/$pkgname/archive/$_commit.tar.gz

	$pkgname.confd
	$pkgname.initd
	"
builddir="$srcdir/$pkgname-$_commit"

build() {
    make
}

prepare() {
	default_prepare

	git clone --depth=1 -b 0.9.4 \
		https://github.com/jgthms/bulma.git \
        scss/bulma
}

check() {
    make test.unit
}

package() {
	install -Dm755 bin/lens "$pkgdir"/usr/bin/lens

	install -dm755 "$pkgdir"/var/lib/lens

	install -Dm755 "$srcdir"/lens.initd "$pkgdir"/etc/init.d/lens
	install -Dm644 "$srcdir"/lens.confd "$pkgdir"/etc/conf.d/lens
}

sha512sums="
8771aa7bd1c421d8e9820bf62d88875ee65ed7ba9b4cffe6f02673181d8f4aaebc4ff7a4277ad2c917694a63a14f2404bfed9263cca553f2127bd801d6f15b57  lens-752ee7db471f3d5368f30a5841d5286465a8d5ab.tar.gz
d0601df138e368de4b1972fdeee44a654dd1810574949c80953b162c689288e3177279a67a47b1861d0a8760a804fe0d051f5066f9e2f30b3f1157e3e5d45394  lens.confd
83392268213079ce557e6d7d9874b0ccaeabcd2531b009617479dd0c0fb8c83d5ed49a7c6900f3b849f5103c8453c008905255a05b19f19f3ac78b50e7fa3ea0  lens.initd
"