~dricottone/huttese-apk

ref: 01e3763e2ec45dbfc3e01cf725cb5f6a1154b35f huttese-apk/sr.ht/paste.sr.ht/APKBUILD -rw-r--r-- 1.3 KiB
01e3763e — Drew DeVault sr.ht/paste.sr.ht: upgrade to 0.9.0 5 years ago
                                                                                
c22847d0 Drew DeVault
01e3763e Drew DeVault
c22847d0 Drew DeVault
534bdde9 Drew DeVault
c22847d0 Drew DeVault
ec4d2192 Drew DeVault
c22847d0 Drew DeVault
fc48e48f Drew DeVault
c22847d0 Drew DeVault
ec4d2192 Drew DeVault
c22847d0 Drew DeVault
01e3763e Drew DeVault
ec4d2192 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=paste.sr.ht
pkgver=0.9.0
pkgrel=0
pkgdesc="sr.ht paste service"
url="https://git.sr.ht/~sircmpwn/paste.sr.ht"
arch="noarch"
license="AGPLv3"
depends="
	py3-gunicorn
	py3-srht
	py3-yaml
"
makedepends="py-setuptools nodejs sassc"
subpackages="${pkgname}-openrc"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
	paste.sr.ht.initd
	paste.sr.ht.confd
"
builddir="$srcdir/$pkgname-$pkgver"
export PKGVER=$pkgver
options="$options !check"
install="$pkgname.post-install $pkgname.post-upgrade"

build() {
	cd "$builddir"
	python3 setup.py build
}

package() {
	cd "$builddir"
	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/confd.d/paste.sr.ht
}

sha512sums="71989a47cb51351ce6367f063a3ec28efde5c0731609f536b3a01bf45f02ca3d8c516569fa8544b44b63eca871986daec488ede7e94f55160d4720d4312ea35a  paste.sr.ht-0.9.0.tar.gz
d212f4e96a15b7db6f676a57ae9f8956456d3ec7d61e8cc2cfdcca30890cceaf1f38f87772f97143620ef9ec749fa54c3e0e1029e2a74b9dba95f1a571e0658b  paste.sr.ht.initd
5ad67f8d07683186fd8b25e4075f6b83754bfd1a6072a494641601a73941b32be018335539cf34d15eee2200f7067fb4cf6f0a064cadc34d0c0b834b1a938d70  paste.sr.ht.confd"