aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-08-30 04:59:08 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-08-30 05:55:34 -0300
commit7ab3d41ab54852260a6e7bab00e048d0d92cbc7a (patch)
treee25e1c0916e4fe4217370adfd0341b4db02d7336
parent50ac7dd12e6764164516df554c46396e4613f2de (diff)
downloadaports-7ab3d41ab54852260a6e7bab00e048d0d92cbc7a.tar.bz2
aports-7ab3d41ab54852260a6e7bab00e048d0d92cbc7a.tar.xz
testing/py3-xlib: upgrade to 0.25
-rw-r--r--testing/py3-xlib/APKBUILD51
1 files changed, 13 insertions, 38 deletions
diff --git a/testing/py3-xlib/APKBUILD b/testing/py3-xlib/APKBUILD
index 5c37261013..bf941e0d21 100644
--- a/testing/py3-xlib/APKBUILD
+++ b/testing/py3-xlib/APKBUILD
@@ -1,57 +1,32 @@
# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer: Ivan Tham <pickfire@riseup.net>
-pkgname=py-xlib
+pkgname=py3-xlib
_pkgname=python-xlib
-pkgver=0.20
-pkgrel=2
+pkgver=0.25
+pkgrel=0
pkgdesc="A fully functional X client library for Python programs"
url="https://github.com/python-xlib/python-xlib"
arch="noarch"
-license="LGPL-2.0"
-depends="py-six"
-checkdepends="xvfb"
-makedepends="python2-dev python3-dev py-setuptools"
-subpackages="${pkgname/py-/py3-}:_py3 ${pkgname/py-/py2-}:_py2"
+license="LGPL-2.1-or-later"
+depends="py3-six"
+checkdepends="xvfb-run py3-mock"
+makedepends="py3-setuptools"
source="https://github.com/$_pkgname/$_pkgname/releases/download/$pkgver/$_pkgname-$pkgver.tar.bz2"
builddir="$srcdir/$_pkgname-$pkgver"
+replaces="py-xlib" # Backwards compatibility
+provides="py-xlib=$pkgver-r$pkgrel" # Backwards compatibility
+
build() {
- cd "$builddir"
- python2 setup.py build
python3 setup.py build
}
check() {
- cd "$builddir"
- Xvfb :1 &
- export DISPLAY=:1
- python2 setup.py test
- python3 setup.py test
+ xvfb-run python3 setup.py test
}
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"
}
-sha512sums="7717832a8da13cde236143f4fc1b849b02e306b59cad6146db0a2fc6d19e9a9f60604110cceadd9a9041e013dcc4d67dcb1c2629e0ca44f9c69ed91d2a1c5adf python-xlib-0.20.tar.bz2"
+sha512sums="616020b740ec80c1c33e1b2934674c14b6c4c9eef5d217b4b89b0316d0bf2d90e604f22269fd7b24882f27f010ff39ec530c262897fcd6b481451002956e38ce python-xlib-0.25.tar.bz2"