summaryrefslogtreecommitdiffstats
path: root/testing/py-cssselect/APKBUILD
blob: cdbba8bc134a85f23b426676b468f851b020676b (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=py-cssselect
_pkgname=cssselect
pkgver=0.7.1
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="$pkgname-doc"
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 install --root="${pkgdir}/" --optimize=1
}

package() {
	cd "$_builddir"
	install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}

md5sums="c6c5e9a2e7ca226ce03f6f67a771379c  cssselect-0.7.1.tar.gz"