# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=legacy.sr.ht-shim
pkgver=1.0.0
pkgrel=0
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
"
builddir="$srcdir/$pkgname-$pkgver"
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
4eea9b305eef0149339aa8f89223bf78f9fae647f126258cb402e6e547b61e7c1e517de27431c49e839cd9e8c71c3ab6affd86d7f4f21791d8b10a51562753c6 legacy.sr.ht-shim.initd
fc8dcf636fa146df3bc9eac72c9036f137b50cedacef39b31b5a9991ea8e646932c20ced8afa0cf1617ce9b4cda3fbac5538dd5a6e7bf20ced2890bda1ebd86f legacy.sr.ht-shim.confd"