aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-dexml/APKBUILD
blob: b7befe5c084efa98ddacec9e682f3e6e37328421 (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
37
38
39
40
41
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-dexml
_pkgname=dexml
pkgver=0.5.1
pkgrel=0
pkgdesc="A simple Object-XML mapper for Python"
url="http://packages.python.org/dexml"
arch="noarch"
license="MIT"
depends="python"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_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
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

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

md5sums="7f7bbb66cdceb38adbc9092a9a159d87  dexml-0.5.1.tar.gz"
sha256sums="6ba83883ead5cc74ce8198daecc657b60bf9cdb3887b484a92dcde55c10e2cdf  dexml-0.5.1.tar.gz"
sha512sums="b8ac2b9f875ac7cf699eb9ee17adb8678ed8d4a796130bbb60f05431207adb68f490b7a7a41600acbc16a3cc08d55f22d91a13e53fe3d835a322709ee3446c9f  dexml-0.5.1.tar.gz"