diff options
author | prspkt <prspkt@protonmail.com> | 2019-06-20 09:10:03 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-06-20 09:33:45 +0300 |
commit | 6cb9d3bb210b356c451d3f2f73c443da1c434d89 (patch) | |
tree | 3e100a5b554d1a0fe07da7709a6599a1d59c0a5c /testing | |
parent | d80eda41067b9e7be0e668034701c9f432bc5eca (diff) | |
download | aports-6cb9d3bb210b356c451d3f2f73c443da1c434d89.tar.bz2 aports-6cb9d3bb210b356c451d3f2f73c443da1c434d89.tar.xz |
testing/py-colour: drop python2
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py3-colour/APKBUILD (renamed from testing/py-colour/APKBUILD) | 33 |
1 files changed, 7 insertions, 26 deletions
diff --git a/testing/py-colour/APKBUILD b/testing/py3-colour/APKBUILD index a99582df25..89a35ed292 100644 --- a/testing/py-colour/APKBUILD +++ b/testing/py3-colour/APKBUILD @@ -1,6 +1,6 @@ # Contributor: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-colour +pkgname=py3-colour _pkgname=colour pkgver=0.1.2 pkgrel=2 @@ -8,41 +8,22 @@ pkgdesc="Converter and manipulator various color representation (HSL, RVB, web, url="https://github.com/vaab/colour" arch="noarch" license="BSD" -depends="py-infinity" -makedepends="python2-dev python3-dev py-setuptools" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +depends="python3" +makedepends="py3-setuptools py3-d2to1" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver +replaces="py-colour" # Backwards compatibility +replaces="py-colour=$pkgver-r$pkgrel" # Backwards compatibility + build() { cd "$builddir" - python2 setup.py build || return 1 python3 setup.py build || return 1 } package() { - mkdir -p "$pkgdir" -} - -_py2() { - replaces="$pkgname" - depends="${depends//py-/py2-}" - _py python2 -} - -_py3() { - depends="${depends//py-/py3-}" - _py python3 -} - -_py() { - local python="$1" - pkgdesc="$pkgdesc (for $python)" - depends="$depends $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" + python3 setup.py install --prefix=/usr --root="$pkgdir" } md5sums="819a068a7f1b3fd2c65f19019d64f8a2 colour-0.1.2.tar.gz" |