~dricottone/huttese-apk

ref: fa81c2e9ae591ff37ce410735a3d4e6e6c89906a huttese-apk/sr.ht/legacy.sr.ht-shim/APKBUILD -rw-r--r-- 1.3 KiB
fa81c2e9 — Drew DeVault README.md: remove note about letting *.sr.ht upgrade themselves 2 years ago
                                                                                
32e1b3cd Drew DeVault
6e8b20d4 Drew DeVault
32e1b3cd Drew DeVault
1a5bc505 Drew DeVault
07ff6f73 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=legacy.sr.ht-shim
pkgver=1.0.0
pkgrel=7
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
56cdfc1d23f41b10aa4eebbf5e1b3b22cf1d2005f44753ac0225d51189fb7eb68a57dbafb7426e8fe587b6e5137605c9916b7ee0b35793dcc6f8952e4b5b3723  legacy.sr.ht-shim.initd
3d9c5dc7bb33d938d77f30a7bd5df9098e2fc382c701de08101cd1066152065ba03ecf0c6ce47985a2ea078be13171a88e79d90ec742384e4bbe1a5c1d81c640  legacy.sr.ht-shim.confd"