~dricottone/huttese-apk

ref: 0816248b741069c914a969f26b2a274d0142d379 huttese-apk/sr.ht/legacy.sr.ht-shim/APKBUILD -rw-r--r-- 1.3 KiB
0816248b — Drew DeVault py3-amqp: upgrade to 5.0.3 3 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=legacy.sr.ht-shim
pkgver=1.0.0
pkgrel=3
pkgdesc="legacy.sr.ht API shim service (you don't want to use this)"
url="https://git.sr.ht/~sircmpwn/legacy.sr.ht-shim"
arch="noarch"
license="AGPLv3"
depends="py3-srht"
makedepends="py3-setuptools"
subpackages="${pkgname}-openrc"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
	legacy.sr.ht-shim.initd
	legacy.sr.ht-shim.confd
"
export PKGVER=$pkgver
options="$options !check"
install="$pkgname.post-install"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --root="$pkgdir" --optimize=1
	mkdir -p "$pkgdir"/etc/init.d
	install -Dm755 "$srcdir"/legacy.sr.ht-shim.initd \
		"$pkgdir"/etc/init.d/legacy.sr.ht-shim
	install -Dm644 "$srcdir"/legacy.sr.ht-shim.confd \
		"$pkgdir"/etc/conf.d/legacy.sr.ht-shim
}

sha512sums="4ffaaf522ef18f1fb82b0e3d2a54a6f594edbf6a2e55e9f58c41a36d858a431b617d7252792092ad1669b5df8aafd15c11129db3db84dda61f5d10158aa82f47  legacy.sr.ht-shim-1.0.0.tar.gz
98a10720e0a62e96115ee9f4e5167397191006f5d637da550395adccd5ee240d850bc0df7f15fd244c70316e83407c95a16844ab7e6eeeb81f785b3d9c890c37  legacy.sr.ht-shim.initd
3d9c5dc7bb33d938d77f30a7bd5df9098e2fc382c701de08101cd1066152065ba03ecf0c6ce47985a2ea078be13171a88e79d90ec742384e4bbe1a5c1d81c640  legacy.sr.ht-shim.confd"