~sircmpwn/sr.ht-pkgbuilds

ref: eb016e0678dcb7c4643a8b42e39f7df7ef3b683f sr.ht-pkgbuilds/lists.sr.ht/PKGBUILD -rw-r--r-- 1.3 KiB
eb016e06Eli Schwartz git.sr.ht: upgrade to latest version and add the API service 5 months ago
                                                                                
d592a3d1 Drew DeVault
a4c1ea55 Christopher Vittal
a4c1ea55 Christopher Vittal
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
pkgname=lists.sr.ht
pkgver=0.12.6
pkgrel=3
pkgdesc="sr.ht mailing list services"
arch=("any")
license=("AGPL3")
url="https://git.sr.ht/~sircmpwn/lists.sr.ht"
depends=(
	"python-pygit2" "python-srht" "python-celery" "python-aiosmtpd"
	"python-asyncpg" "python-redis" "gunicorn" "python-emailthreads"
)
makedepends=("python-setuptools" "nodejs" "sassc")
optdepends=(
	"redis: dispatching emails for archiving and forwarding"
)
install=lists.sr.ht.install
source=(
	"$pkgname-$pkgver.tar.gz::http://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz"
	"lists.sr.ht.service"
	"lists.sr.ht-webhooks.service"
	"sysusers.conf"
)
sha256sums=('afa8a123eed3c26df77cb8fc7f90ec9f49237a3481259730915a279f73848a20'
            '3bfc68d7945fa1d996fdf2ca202ceebbe5511ca6618f9a123ea1ac61ac1df062'
            'e845fce17a361d19e447a9b253dd7b68fb51b729b51a6c4a6ed94845954e1279'
            '753453b055e613e7c0fb22991ca8d9f588fe1ba705e26f0e8c2504c464f4e5d0')
export PKGVER=$pkgver

build() {
	cd $pkgbase-$pkgver
	python3 setup.py build
}

package() {
	cd $pkgbase-$pkgver
	install -Dm0644 ../lists.sr.ht.service -t "$pkgdir"/usr/lib/systemd/system/
	install -Dm0644 ../lists.sr.ht-webhooks.service -t "$pkgdir"/usr/lib/systemd/system/
	install -Dm0644 ../sysusers.conf "$pkgdir/usr/lib/sysusers.d/lists.sr.ht.conf"
	python3 setup.py install --root="${pkgdir}" --optimize=1
}