diff options
author | balex@mailinator.com | 2019-06-23 20:58:55 -0400 |
---|---|---|
committer | balex@mailinator.com | 2019-06-23 21:04:18 -0400 |
commit | 2446864ab63ea2c214c40de529e8df55dec415c0 (patch) | |
tree | 5187ffd51f642404edc0c412e52eb6d4e06f974d /PKGBUILD | |
download | aur-python-ttrss-python-git.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bc589e16142d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Packager: Berényi Alexander +# Maintainer: Berényi Alexander + +_pkgname=ttrss-python +pkgname=python-$_pkgname-git +pkgver=0.5.r8.g3d2d26d +pkgrel=1 +pkgdesc="A python library for the Tiny Tiny RSS web API" +arch=('any') +url='https://ttrss-python.readthedocs.io' +license=('MIT') +depends=('python-requests') +makedepends=('git' 'python-setuptools') +provides=($_pkgname) +conflicts=($_pkgname) +source=('git+https://github.com/Vassius/ttrss-python.git') +md5sums=('SKIP') + +pkgver() { + cd "$_pkgname" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "$srcdir/$_pkgname" + python setup.py build +} + +package() { + cd "$srcdir/$_pkgname" + python setup.py install --root="$pkgdir/" --optimize=1 --skip-build +} |