diff options
author | Gabriele Musco | 2020-01-17 11:49:06 +0100 |
---|---|---|
committer | Gabriele Musco | 2020-01-17 11:49:06 +0100 |
commit | 392f3df039b110704c4e55e76851b83cdd253f1c (patch) | |
tree | 2df437345325a35ebfe4f9a8d88ad2d8520c7bc8 | |
parent | dc0929197ff8cb59b91b81860d41b5deb4409b30 (diff) | |
download | aur-392f3df039b110704c4e55e76851b83cdd253f1c.tar.gz |
first commit as git package
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 29 insertions, 18 deletions
@@ -1,7 +1,7 @@ -pkgbase = python-readability-lxml - pkgdesc = This is a python port of a ruby port of arc90’s readability project - pkgver = 0.7.1 - pkgrel = 2 +pkgbase = python-readability-lxml-git + pkgdesc = A python port of a ruby port of arc90 readability project + pkgver = 0.6.1.r59.g615ce80 + pkgrel = 1 url = https://pypi.org/project/readability-lxml/ arch = any license = custom:Apache @@ -9,10 +9,12 @@ pkgbase = python-readability-lxml depends = python-chardet depends = python-cssselect depends = python-lxml - source = https://pypi.python.org/packages/source/r/readability-lxml/readability-lxml-0.7.1.tar.gz + provides = python-readability-lxml + conflicts = python-readability-lxml + source = readability::git+https://github.com/buriy/python-readability source = LICENSE - sha256sums = 87cb722e53a4a5749effe37fb1236abc52a856ce71113324d06b25d96b48147b + sha256sums = SKIP sha256sums = 1f2afa61a3e7d62e5cf62b471c60c40853effc3428289f5961c84e24cf60447a -pkgname = python-readability-lxml +pkgname = python-readability-lxml-git @@ -1,23 +1,32 @@ -# Maintainer: BrainDamage -pkgname=python-readability-lxml -pkgver=0.7.1 -pkgrel=2 -pkgdesc="This is a python port of a ruby port of arc90’s readability project" -arch=(any) +# Maintainer: Gabriele Musco <gabmus@disroot.org> +# Based on python-readability-lxml package from BrainDamage + +pkgname=python-readability-lxml-git +pkgver=0.6.1.r59.g615ce80 +pkgrel=1 +pkgdesc="A python port of a ruby port of arc90 readability project" +arch=("any") url="https://pypi.org/project/readability-lxml/" license=("custom:Apache") depends=("python" "python-chardet" "python-cssselect" "python-lxml") -sha256sums=("87cb722e53a4a5749effe37fb1236abc52a856ce71113324d06b25d96b48147b" "1f2afa61a3e7d62e5cf62b471c60c40853effc3428289f5961c84e24cf60447a") -source=("https://pypi.python.org/packages/source/r/readability-lxml/readability-lxml-$pkgver.tar.gz" "LICENSE") +provides=("python-readability-lxml") +conflicts=("python-readability-lxml") +sha256sums=("SKIP" "1f2afa61a3e7d62e5cf62b471c60c40853effc3428289f5961c84e24cf60447a") +source=("readability::git+https://github.com/buriy/python-readability" "LICENSE") + +pkgver() { + cd "$srcdir/readability" + git describe --long --tags --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} build() { - cd "$srcdir/readability-lxml-$pkgver" + cd "$srcdir/readability" python setup.py build } package() { install -m644 -D LICENSE "$pkgdir/usr/share/licenses/python-readability-lxml/LICENSE" - cd "$srcdir/readability-lxml-$pkgver" + cd "$srcdir/readability" python setup.py install --optimize=1 --root="$pkgdir/" --prefix="/usr" install -m644 -D README.rst "$pkgdir/usr/share/doc/python-readability-lxml/README.rst" -}
\ No newline at end of file +} |