summaryrefslogtreecommitdiffstats
path: root/testing/py-cssutils/APKBUILD
blob: 36378df85e52b968a61d06dbbc4a48e9971b06c8 (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# 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"