aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-xdg/APKBUILD
blob: 2d85e16a0123296a29835f3d2d30b87230232a3b (plain)
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
33
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=py3-xdg
_pkgname=pyxdg
pkgver=0.26
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="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() {
	python3 setup.py build
}

check() {
	nosetests
}

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

sha512sums="f5306e6e15af07df2599017500fc8ad83e722e5d5c6e4fda014aab1d77df92a3c3199a5be7a889faaecab72861e9910be9d80142d29856eb7a11f6ab9a923bd2  pyxdg-0.26.tar.gz"