aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-cssutils
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2017-03-28 20:06:35 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-03-28 22:06:24 +0200
commit54c4e4f4bed407cc8603ce36bb8a19fda584dc30 (patch)
tree0742b6f6d974b54ce9e087ab5a6e808d45545ae0 /testing/py-cssutils
parenteff8022f62ba20f8d55a99970bed9c25580a2671 (diff)
downloadaports-54c4e4f4bed407cc8603ce36bb8a19fda584dc30.tar.bz2
aports-54c4e4f4bed407cc8603ce36bb8a19fda584dc30.tar.xz
testing/py-cssutils: upgrade to 1.0.2 and modernize abuild
Diffstat (limited to 'testing/py-cssutils')
-rw-r--r--testing/py-cssutils/APKBUILD28
1 files changed, 6 insertions, 22 deletions
diff --git a/testing/py-cssutils/APKBUILD b/testing/py-cssutils/APKBUILD
index c4c7be8df1..8fc3852bee 100644
--- a/testing/py-cssutils/APKBUILD
+++ b/testing/py-cssutils/APKBUILD
@@ -2,40 +2,24 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-cssutils
_pkgname=cssutils
-pkgver=1.0.1
+pkgver=1.0.2
pkgrel=0
pkgdesc="A CSS Cascading Style Sheets library for Python"
url="http://cthedot.de/cssutils/"
arch="noarch"
license="LGPL3+"
-depends=""
-depends_dev="python2-dev py-setuptools"
-makedepends="$depends_dev"
-install=""
-subpackages=""
+makedepends="python2-dev py-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_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
-}
+builddir="$srcdir"/$_pkgname-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
python2 setup.py build || return 1
}
package() {
- cd "$_builddir"
+ cd "$builddir"
python2 setup.py install --root="${pkgdir}/" --optimize=1
}
-md5sums="7fcdf2c3e9f053136af1990146eb361d cssutils-1.0.1.tar.gz"
-sha256sums="d8a18b2848ea1011750231f1dd64fe9053dbec1be0b37563c582561e7a529063 cssutils-1.0.1.tar.gz"
-sha512sums="932a128443cc31f689d91c7c75a04ddc79824b4e5c0779e48d30fa0a3a760cad82d8208264ec95a3b120c38962f2eabf6b3456aa8f81d24e9c9718e95fd6bf83 cssutils-1.0.1.tar.gz"
+sha512sums="4988893875a03923d3127e334654799e5c2ebcdc0a7f5b3fb5c9ab27d1b331caa5bf197161312a298531e0757843aa3259ceba5fa19947353eea24a5da53ceda cssutils-1.0.2.tar.gz"