From 6a1f8c2ab81e2ecb5aaf0207d4c146f8410c8632 Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Mon, 3 Dec 2012 10:46:26 +0000 Subject: testing/py-cssutils: new aport --- testing/py-cssutils/APKBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 testing/py-cssutils/APKBUILD (limited to 'testing') diff --git a/testing/py-cssutils/APKBUILD b/testing/py-cssutils/APKBUILD new file mode 100644 index 0000000000..36378df85e --- /dev/null +++ b/testing/py-cssutils/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Francesco Colista +# Maintainer: +pkgname=py-cssutils +_pkgname=cssutils +pkgver=0.9.9 +pkgrel=0 +pkgdesc="A CSS Cascading Style Sheets library for Python" +url="http://cthedot.de/cssutils/" +arch="noarch" +license="LGPL3" +depends="" +depends_dev="python-dev py-setuptools" +makedepends="$depends_dev" +install="" +subpackages="" +source="http://pypi.python.org/packages/source/c/$_pkgname/$_pkgname-${pkgver}.zip" +_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 install --root="${pkgdir}/" --optimize=1 +} + +package() { + cd "$_builddir" +} + +md5sums="5f8ea824cc0e0518b574da20e895be08 cssutils-0.9.9.zip" -- cgit v1.2.3