aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-xdg/APKBUILD
blob: 5dbad4d318f550123f73494ee434c410f9d2d2ae (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
34
35
36
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=py-xdg
_pkgname=pyxdg
pkgver=0.25
pkgrel=1
pkgdesc="A python library to access freedesktop.org standards"
url="https://freedesktop.org/wiki/Software/pyxdg"
arch="noarch"
license="LGPL"
depends=""
depends_dev="python2-dev"
makedepends="$depends_dev"
install=""
subpackages=""
source="https://people.freedesktop.org/~takluyver/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

package() {
	cd "$_builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="bedcdb3a0ed85986d40044c87f23477c  pyxdg-0.25.tar.gz"
sha256sums="81e883e0b9517d624e8b0499eb267b82a815c0b7146d5269f364988ae031279d  pyxdg-0.25.tar.gz"
sha512sums="86cbf3a54fb8e79043db60dcdbb3fb10013ae25a900fa3592edc8a24bf3f440c19bc04626c7906293c785fcb56eab9d87d209b723b5baa872376ba1eb86758b6  pyxdg-0.25.tar.gz"