aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-xlib/APKBUILD
blob: e4e74ccbb79c3037ea24e8bed03d51d25269a2cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer: Ivan Tham <pickfire@riseup.net>
pkgname=py3-xlib
_pkgname=python-xlib
pkgver=0.26
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.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() {
	python3 setup.py build
}

check() {
	xvfb-run python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="1f012861e657094323126f6065da4ff743728253625929676fc39ed8d2673e38b9f39f4be8ed2350c6d41a25a184a68489866c9a5edf07c87d62382651e6f884  python-xlib-0.26.tar.bz2"