2014-08-23 10:45:33 +00:00

42 lines
1.1 KiB
Plaintext

# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-cssutils
_pkgname=cssutils
pkgver=1.0
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/${_pkgname:0:1}/$_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"
python setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --root="${pkgdir}/" --optimize=1
}
md5sums="0c0b9df329ec1461c732d0f3cba05e93 cssutils-1.0.zip"
sha256sums="4504762f5d8800b98fa713749c00acfef8419826568f9363c490e45146a891af cssutils-1.0.zip"
sha512sums="fac2e46edece73fac66a741c7226b7a1ed9ef58d4a621e60a5b7ecd96dc74c5121969f007bd80a6dddea06a811dbc85b3691940cefc7a5b887fc458febb974e8 cssutils-1.0.zip"