1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/community/py3-xdg/APKBUILD
psykose deb62258ec */*: set --skip-build for python installs
this marginally increases install speed by not checking if it needs a rebuild.
also remove --prefix=/usr as it defaults to /usr already.

might break a build or two, will fix later
2023-01-10 04:19:31 +01:00

35 lines
968 B
Text

# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=py3-xdg
_pkgname=pyxdg
pkgver=0.28
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 --skip-build --root="$pkgdir"
}
sha512sums="
ac9dd56d72dab370da8615db6c73502472d122ff2acb1911870aa4b2b409f45d3c00642d13970401dd1000a05f10bcd9b9a7c39cf1f861b446bdf6e4a2f8c5bb pyxdg-0.28.tar.gz
"