mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
testing/py-cssutils: upgrade to python3
This commit is contained in:
parent
97bdc33186
commit
8067230254
@ -1,25 +1,23 @@
|
||||
# Contributor: Francesco Colista <francesco.colista@gmail.com>
|
||||
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
||||
pkgname=py-cssutils
|
||||
pkgname=py3-cssutils
|
||||
_pkgname=cssutils
|
||||
pkgver=1.0.2
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="A CSS Cascading Style Sheets library for Python"
|
||||
url="http://cthedot.de/cssutils/"
|
||||
arch="noarch"
|
||||
license="LGPL-3.0-or-later"
|
||||
makedepends="python2-dev py-setuptools"
|
||||
depends="py3-setuptools"
|
||||
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||
builddir="$srcdir"/$_pkgname-$pkgver
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python2 setup.py build || return 1
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python2 setup.py install --root="${pkgdir}/" --optimize=1
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
}
|
||||
|
||||
sha512sums="4988893875a03923d3127e334654799e5c2ebcdc0a7f5b3fb5c9ab27d1b331caa5bf197161312a298531e0757843aa3259ceba5fa19947353eea24a5da53ceda cssutils-1.0.2.tar.gz"
|
||||
Loading…
x
Reference in New Issue
Block a user