summaryrefslogtreecommitdiffstats
path: root/testing/py-beautifulsoup4/APKBUILD
blob: fa7e8c8ae05a4f88f28ba66c9e06b8a3ebb8313f (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-beautifulsoup4
_pkgname=beautifulsoup4
pkgver=4.3.1
pkgrel=0
pkgdesc="A Python HTML/XML parser"
url="http://www.crummy.com/software/BeautifulSoup/index.html"
arch="noarch"
license="MIT"
depends="python"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://www.crummy.com/software/BeautifulSoup/bs4/download/${pkgver:0:3}/$_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="508095f2784c64114e06856edc1dafed  beautifulsoup4-4.3.1.tar.gz"
sha256sums="d94545f5a222fa8ad0265e08f40f1d719fe40acd6655fa3d00b42ae269ec2f0d  beautifulsoup4-4.3.1.tar.gz"
sha512sums="643342e679e9f5c4f7cc6386514151ba1176f7962ac6e40c8279de75c5081ad390ccd983a3f4e6ccaa4adadb10acaa6f0c53157099703a30a4741f3aa5c658e5  beautifulsoup4-4.3.1.tar.gz"