summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 054d317fdc08596854f9f5b3dedb0d1d94727185 (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
# Maintainer: BrainDamage
pkgname=python2-readability-lxml
pkgver=0.6.1
pkgrel=1
pkgdesc="This is a python port of a ruby port of arc90’s readability project"
arch=(any)
url="https://github.com/buriy/python-readability"
license=("custom:Apache")
depends=("python2" "python2-chardet" "python2-cssselect" "python2-lxml")
optdepends=()
md5sums=("ba7bd3b90f2689472df0b10cc87ad5f2" "180667c7abbe3fa664518bfc5da9a145")
source=("https://pypi.python.org/packages/source/r/readability-lxml/readability-lxml-$pkgver.tar.gz" "LICENSE")

build() {
	cd "$srcdir/readability-lxml-$pkgver"
	python2 setup.py build
}

package() {
	install -m644 -D LICENSE "$pkgdir/usr/share/licenses/python2-readability-lxml/LICENSE"
	cd "$srcdir/readability-lxml-$pkgver"
	python2 setup.py install --root="$pkgdir/" --prefix="/usr"
	install -m644 -D README "$pkgdir/usr/share/doc/python2-readability-lxml/README"
}