summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d096f81b2e8f1b03bc21e2edcce9e37e1049e486 (plain)
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
41
# Maintainer: Roshless <pkg@roshless.com>

pkgname=nnrss
pkgver=1.2.2
pkgrel=2
pkgdesc='Web/API RSS aggregator'
url='https://git.roshless.me/~roshless/nnrss'
arch=('any')
license=('AGPL')
depends=('python-flask' 'python-sqlalchemy' 'python-werkzeug'
	 'python-feedparser' 'python-listparser' 'python-apscheduler'
	 'python-wtforms')
optdepends=('gunicorn: recommended WSGI server'
	    'python-psycopg2: connect to PostgreSQL database'
	    'sqlite: local file database')
makedepends=('python-setuptools')
backup=("var/lib/$pkgname/config.ini")
source=("https://git.roshless.me/~roshless/$pkgname/archive/${pkgver}.tar.gz"
        "nnrss.service"
        "nnrss.sysusers"
        "nnrss.tmpfiles")

build() {
  cd $pkgname-$pkgver
  python setup.py build
}

package() {
  install -Dm644 $pkgname.service -t "$pkgdir/usr/lib/systemd/system/"
  install -Dm644 $pkgname.sysusers "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
  install -Dm644 $pkgname.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"

  cd $pkgname-$pkgver
  install -Dm644 "dist/config.ini" "$pkgdir/var/lib/$pkgname/config.ini"
  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}

md5sums=('b45aacc78a250e6abe00607610437065'
         '85e39687367524c7b87bfb95571020bf'
         '8b9a147720fbe9f6c013f6aa7dbb8140'
         '364b51a829d7cf46a9557b97f8d3ce28')