diff options
Diffstat (limited to 'testing/py-chameleon/APKBUILD')
-rw-r--r-- | testing/py-chameleon/APKBUILD | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/testing/py-chameleon/APKBUILD b/testing/py-chameleon/APKBUILD index 2e19ad0753..49794988c5 100644 --- a/testing/py-chameleon/APKBUILD +++ b/testing/py-chameleon/APKBUILD @@ -7,34 +7,20 @@ pkgrel=0 pkgdesc="A Fast Python HTML/XML Template Compiler" url="https://chameleon.readthedocs.org" arch="noarch" -license="BSD" +license="BSD-3-Clause AND BSD-4-Clause AND Python-2.0 AND ZPL-2.1" depends="py-setuptools" -depends_dev="" makedepends="py2-setuptools py3-setuptools" -install="" subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" 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" - python2 setup.py build || return 1 + python2 setup.py build python3 setup.py build } check() { - cd "$_builddir" python2 setup.py test python3 setup.py test } @@ -60,7 +46,7 @@ _py() { depends="$depends $python" install_if="$pkgname=$pkgver-r$pkgrel $python" - cd "$_builddir" + cd "$builddir" $python setup.py install --prefix=/usr --root="$subpkgdir" } |