# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=lists.sr.ht
pkgver=0.14.1
pkgrel=0
pkgdesc="sr.ht mailing list service"
url="https://git.sr.ht/~sircmpwn/lists.sr.ht"
arch="noarch"
license="AGPLv3"
depends="
py3-srht
py3-celery
py3-aiosmtpd
py3-asyncpg
py3-redis
py3-unidiff
py3-gunicorn
"
makedepends="py-setuptools nodejs sassc"
subpackages="${pkgname}-openrc"
source="
$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
lists.sr.ht.init
"
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
mkdir -p "$pkgdir"/etc/init.d
install -Dm755 "$srcdir"/lists.sr.ht.init "$pkgdir"/etc/init.d/lists.sr.ht
}
sha512sums="80132b5b6af35902ac40be9202916a94257e62b348d5a60bf79fc6faeda319d7ed1639e486ab21c5906818c0b7176dc5658f995114343bf647ef46e803350116 lists.sr.ht-0.14.1.tar.gz
12d18641115a9f78e25f19a45686192d4f1123a58bfd8f5cd0a0e6e5b360af422309e405eedb46805a0f57913d7f2b0b99550895fa0e44654ed467a934a10fc6 lists.sr.ht.init"