aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-cssselect/APKBUILD
blob: 92447c50a5e151ec49108c9abdbcaa95747936ba (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: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=py-cssselect
_pkgname=cssselect
pkgver=0.8
pkgrel=0
pkgdesc="A Python library that parses CSS3 Selectors and translates them to XPath 1.0"
url="http://pypi.python.org/pypi/cssselect"
arch="noarch"
license="BSD"
depends=""
depends_dev="python-dev"
makedepends="$depends_dev"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/c/$_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 --root="${pkgdir}/" --optimize=1
	install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}

md5sums="c4683e050351abcbbd5990b01f5344e2  cssselect-0.8.tar.gz"
sha256sums="792478c4405b90e28781e694d8b8bae00a234b557b9fac3c93082b938d313bbe  cssselect-0.8.tar.gz"
sha512sums="4001f48e804b19170a328a1bd7dedf3cdfd0ca4103713448e69288fcefa87dba74066a43e5cf4287db312e17719a4eec67ac54827e1bf917d664d0fed515da52  cssselect-0.8.tar.gz"