aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-colander/APKBUILD
blob: 8140fe65189de3d1155a01fdd6bdce4f9ccabe6d (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-colander
_pkgname=colander
pkgver=1.0
pkgrel=0
pkgdesc="A simple schema-based Python serialization and deserialization library"
url="http://docs.pylonsproject.org/projects/colander/en/latest/"
arch="noarch"
license="BSD"
depends="python"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://pypi.python.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="058576123da7216288c079c9f47693f8  colander-1.0.tar.gz"
sha256sums="7389413266b9e680c9529c16d56284edf87e0d5de557948e75f41d65683c23b3  colander-1.0.tar.gz"
sha512sums="f361520a12ebec4271580fe5be002bfbdd38fcd4cfb29fa41b9c37308636343dd25595f2e0bd8099bc96583d25644d2039996efefd9c0060fe39f3c46394a4f7  colander-1.0.tar.gz"