summaryrefslogtreecommitdiffstats
path: root/python-extruct/PKGBUILD
blob: 3aaf859e4acfa246c241ada3b38335cec1d67fe5 (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: Yigit Sever <yigit at yigitsever dot com>
pkgname=python-extruct
_pkgname=extruct
pkgver=0.13.0
pkgrel=1
pkgdesc="Extract embedded metadata from HTML markup"
arch=('any')
url="https://github.com/scrapinghub/extruct"
license=('custom')
depends=('python-lxml' 'python-requests' 'python-rdflib' 'python-rdflib-jsonld' 'python-pyrdfa3' 'python-mf2py' 'python-six' 'python-w3lib' 'python-html-text' 'python-jstyleson')
makedepends=('python-setuptools')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('2bf4d8aaf9cfd2ea27bac256e5cabd601a480a47f49b9531ac8bfe3b42a9c74f')

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

package() {
	cd "${_pkgname}-${pkgver}"
	python setup.py install --root="$pkgdir" --optimize=1
	install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}