diff options
| author | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 10:03:08 -0300 |
|---|---|---|
| committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 10:15:58 -0300 |
| commit | 27d2aaf0243cded557ef40111ee23cd79b9e11ae (patch) | |
| tree | 94d974e4ba4b0937ef167a7c8c71e7fab56e7e4f /testing | |
| parent | 8b029ca4cbe545534eab022f438dc93380425fd9 (diff) | |
| download | aports-27d2aaf0243cded557ef40111ee23cd79b9e11ae.tar.bz2 aports-27d2aaf0243cded557ef40111ee23cd79b9e11ae.tar.xz | |
testing/py3-xdg: drop py2
Diffstat (limited to 'testing')
| -rw-r--r-- | testing/py3-xdg/APKBUILD | 39 |
1 files changed, 13 insertions, 26 deletions
diff --git a/testing/py3-xdg/APKBUILD b/testing/py3-xdg/APKBUILD index 05a04f6836..2d85e16a01 100644 --- a/testing/py3-xdg/APKBUILD +++ b/testing/py3-xdg/APKBUILD @@ -1,46 +1,33 @@ # Contributor: August Klein <amatcoder@gmail.com> # Maintainer: August Klein <amatcoder@gmail.com> -pkgname=py-xdg +pkgname=py3-xdg _pkgname=pyxdg pkgver=0.26 -pkgrel=0 +pkgrel=1 pkgdesc="A python library to access freedesktop.org standards" +options="!check" # Test fails url="https://freedesktop.org/wiki/Software/pyxdg" arch="noarch" license="LGPL-2.1-only" -depends="" -makedepends="python2 python3" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +depends="python3" +makedepends="py3-setuptools" +checkdepends="py3-nose hicolor-icon-theme" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" - builddir="$srcdir"/$_pkgname-$pkgver +replaces="py-xdg" # Backwards compatibility +provides="py-xdg=$pkgver-r$pkgrel" # Backwards compatibility + build() { - python2 setup.py build python3 setup.py build } -package() { - mkdir -p "$pkgdir" -} - -_py2() { - replaces="$pkgname" - _py python2 +check() { + nosetests } -_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" +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="f5306e6e15af07df2599017500fc8ad83e722e5d5c6e4fda014aab1d77df92a3c3199a5be7a889faaecab72861e9910be9d80142d29856eb7a11f6ab9a923bd2 pyxdg-0.26.tar.gz" |
