diff options
author | prspkt <prspkt@protonmail.com> | 2019-06-14 22:22:52 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-06-14 22:46:36 +0300 |
commit | ce00a353869e9f19d0dec18795821aa518e72313 (patch) | |
tree | de2450bc38c5adebce1591d851dd47bdec725880 /testing/py-chameleon/APKBUILD | |
parent | 1fcb9b3ad0300b4853a1eb6b565633b5214c5d74 (diff) | |
download | aports-ce00a353869e9f19d0dec18795821aa518e72313.tar.bz2 aports-ce00a353869e9f19d0dec18795821aa518e72313.tar.xz |
testing/py-chameleon: clarify license, modernize
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" } |