diff options
-rw-r--r-- | testing/py-cssselect/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/py-cssselect/APKBUILD b/testing/py-cssselect/APKBUILD new file mode 100644 index 0000000000..cdbba8bc13 --- /dev/null +++ b/testing/py-cssselect/APKBUILD @@ -0,0 +1,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" |