~dricottone/huttese-apk

ref: 37705be3da581e08500b5c711825e2a83b704304 huttese-apk/sr.ht/paste.sr.ht/APKBUILD -rw-r--r-- 2.6 KiB
37705be3 — Drew DeVault py3-stripe: upgrade to 2.68.0 2 years ago
                                                                                
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
62
63
64
65
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=paste.sr.ht
pkgver=0.13.6
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
	paste.sr.ht.gunicorn.conf.py
"
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
	install -Dm644 "$srcdir"/paste.sr.ht.gunicorn.conf.py \
		"$pkgdir"/etc/sr.ht/paste.sr.ht.gunicorn.conf.py
}

_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="
f52d1b53795920f922052b18614b4ca53288fc72041bc32818da0d9353fa45b164e59da85b9ee6159a3196521f8ced5bc3794d2f77d4e9d2c80b4325178b5a46  paste.sr.ht-0.13.6.tar.gz
1b447f5c7f3aabd61afac0f41352d18a65fa9e27d7c3ddbb84730819da533ef815023a15f0ffb80fba13434ed10fd0171b06c7cf7388b353fb5cee17a2431158  sr.ht-nginx-0.13.6.tar.gz
c6cf45c795f82493a2779c12d67af3ae934d171c4ec81e1a4d36c411b8ff7234bc6ba396a411781e9dfc861557a9223066b5342b5fa9908d1b1bf08f1a12466f  paste.sr.ht.initd
dea54d754186f6bc67c8ca3ef6cc5236355cdc9962aa502d4138245bdcba7edb804b627fcfbf4909fc54bed08ef44ce635947982ff3cb69f3dac0bb6bd55abb3  paste.sr.ht.confd
263f268ba32fef424d8b44af76fa9c94a309c75d2d8c40f46b6556c713c590744edb6e78810b3d9c7a1d037d314c12e034d5e2cee4b46c92851a5e65dfb4f3a3  paste.sr.ht-api.initd
e226a1a3913749c5a72e57c2e6f75f94199f47c72d47ccbac5abba3bc30b827d8619c2f1a60ef2b67f28074007a051981f47d4d2c749da4c5e5e9d1823f54dbf  paste.sr.ht-api.confd
21f39ea0981d7773eb512e5ba234022364d0f7ee9b6ca897ce4c51e3b127eb2d9a7a5fbcaa06d14f20b2df2439421d7261f200e3f4f13b45a91e78ba77bc363c  paste.sr.ht.gunicorn.conf.py
"