~dricottone/huttese-apk

ref: 1d9d903e0980231ef86f433bb7b27fe555639bd3 huttese-apk/sr.ht/paste.sr.ht/APKBUILD -rw-r--r-- 2.3 KiB
1d9d903e — Drew DeVault sachet: upgrade to 0.3.0 2 years ago
                                                                                
c22847d0 Drew DeVault
d696b860 Drew DeVault
4a383dc3 Drew DeVault
c22847d0 Drew DeVault
37db61fa Drew DeVault
c22847d0 Drew DeVault
534bdde9 Drew DeVault
c22847d0 Drew DeVault
7cec6a1c Drew DeVault
d19d6aac Drew DeVault
c22847d0 Drew DeVault
d19d6aac Drew DeVault
ec4d2192 Drew DeVault
7cec6a1c Drew DeVault
c22847d0 Drew DeVault
fc48e48f Drew DeVault
c22847d0 Drew DeVault
7cec6a1c Drew DeVault
c22847d0 Drew DeVault
ec4d2192 Drew DeVault
2dc731f6 Drew DeVault
7cec6a1c Drew DeVault
c22847d0 Drew DeVault
d19d6aac Drew DeVault
1dc3fcce Drew DeVault
d19d6aac Drew DeVault
5252462d Drew DeVault
d19d6aac Drew DeVault
7cec6a1c Drew DeVault
d696b860 Drew DeVault
4a383dc3 Drew DeVault
7cec6a1c Drew DeVault
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
60
61
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=paste.sr.ht
pkgver=0.12.1
pkgrel=0
pkgdesc="sr.ht paste service"
url="https://git.sr.ht/~sircmpwn/paste.sr.ht"
arch="all"
license="AGPLv3"
depends="
	py3-gunicorn
	py3-srht
	py3-yaml
"
makedepends="py-setuptools nodejs sassc go"
subpackages="$pkgname-openrc $pkgname-nginx:_nginx"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
	sr.ht-nginx-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/sr.ht-nginx/archive/master.tar.gz
	paste.sr.ht.initd
	paste.sr.ht.confd
	paste.sr.ht-api.initd
	paste.sr.ht-api.confd
"
export PKGVER=$pkgver
options="$options !check"
install="$pkgname.post-install $pkgname.post-upgrade"

build() {
	python3 setup.py build
	cd api
	go build -o pastesrht-api
}

package() {
	python3 setup.py install --root="$pkgdir" --optimize=1
	install -Dm755 "$srcdir"/paste.sr.ht.initd \
		"$pkgdir"/etc/init.d/paste.sr.ht
	install -Dm644 "$srcdir"/paste.sr.ht.confd \
		"$pkgdir"/etc/conf.d/paste.sr.ht
	install -Dm755 "$srcdir"/paste.sr.ht-api.initd \
		"$pkgdir"/etc/init.d/paste.sr.ht-api
	install -Dm644 "$srcdir"/paste.sr.ht-api.confd \
		"$pkgdir"/etc/conf.d/paste.sr.ht-api
	install -Dm755 api/pastesrht-api "$pkgdir"/usr/bin/pastesrht-api
}

_nginx() {
	depends="sr.ht-nginx"
	pkgdesc="nginx configuration for $pkgname"
	install -Dm644 "$srcdir/sr.ht-nginx-master/paste.sr.ht.conf" \
		"$subpkgdir"/etc/nginx/http.d/paste.sr.ht.conf
}

sha512sums="
7f138f10c863c17db26f9b625885351dbdc41e00da1d6f070fb8785aee23e4b63a0e2c9acc0054f86b583a05aad196f98c80845ae536debaf1cf6c4e2b2d15b4  paste.sr.ht-0.12.1.tar.gz
0b2b6b2916799e20d05d6e35fdb20ac0cded65e254beb79a3aa91d4faa20fe6c93bd3e178acb2d2966841a7ce4f0149b0a863db1d57a36407ff85833779d3959  sr.ht-nginx-0.12.1.tar.gz
ecbbfe19bbb60bb7724210bb38601dcf64cbd24056fb59d22ac4539082b6e30ac4d80b59d1e3ba58ac232df291304746b6deb49836c0a329233c3531baa33bda  paste.sr.ht.initd
8b4f89e5d8fd96b6e898f81c7d5f516715285a4cb871a6bb31bcea059eb40aff5019039a973815aacd22eb9957bb02b2835a8e9c9aac3ab83649145c6636a388  paste.sr.ht.confd
263f268ba32fef424d8b44af76fa9c94a309c75d2d8c40f46b6556c713c590744edb6e78810b3d9c7a1d037d314c12e034d5e2cee4b46c92851a5e65dfb4f3a3  paste.sr.ht-api.initd
e226a1a3913749c5a72e57c2e6f75f94199f47c72d47ccbac5abba3bc30b827d8619c2f1a60ef2b67f28074007a051981f47d4d2c749da4c5e5e9d1823f54dbf  paste.sr.ht-api.confd
"