mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
# 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"
|
|
python2 setup.py build || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
python2 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"
|