aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-html2data/APKBUILD
blob: e06b1da3b4c593d4013b519a13464854b2e55e95 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-html2data
_pkgname=html2data
pkgver=0.4.3
pkgrel=0
pkgdesc="A Python transformer for HTML file or URL to structured data"
url="https://github.com/dperezrada/html2data"
arch="noarch"
license="BSD"
depends="python2 py-lxml py-httplib2"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="a3710a11125fc0ce353f44e28178e9cb  html2data-0.4.3.tar.gz"
sha256sums="0c3335cadb1ac350c3a6dae571a96b45289c7dceb8de95dbe24ca9fa49199628  html2data-0.4.3.tar.gz"
sha512sums="b001ddc229735934283e173ad3b55335d02b12524a4a7487ee505ad09a9b8d23d9c960f3e4324df1b1082fa9b18f007571a79ef3d28e7170013435f1689e567c  html2data-0.4.3.tar.gz"