summaryrefslogtreecommitdiffstats
path: root/python-extruct/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'python-extruct/PKGBUILD')
-rw-r--r--python-extruct/PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/python-extruct/PKGBUILD b/python-extruct/PKGBUILD
new file mode 100644
index 0000000..a19eb52
--- /dev/null
+++ b/python-extruct/PKGBUILD
@@ -0,0 +1,25 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2
3pkgname=python-extruct
4_pkgname=extruct
5pkgver=0.16.0
6pkgrel=1
7pkgdesc="Extract embedded metadata from HTML markup"
8arch=('any')
9url="https://github.com/scrapinghub/extruct"
10license=('custom')
11depends=('python-lxml' 'python-requests' 'python-rdflib' 'python-pyrdfa3' 'python-mf2py' 'python-six' 'python-w3lib' 'python-html-text' 'python-jstyleson')
12makedepends=('python-setuptools')
13source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
14sha256sums=('9ad821c0f87ce8096d72753e5cbdfbace72569aef298b0ee9b2a46ecb9bc46f3')
15
16build() {
17 cd "${_pkgname}-${pkgver}"
18 python setup.py build
19}
20
21package() {
22 cd "${_pkgname}-${pkgver}"
23 python setup.py install --root="$pkgdir" --optimize=1
24 install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
25}