summaryrefslogtreecommitdiffstats
path: root/testing/py-colander/APKBUILD
blob: 8da7d62ce3e90e31af37e3dd887eaf4be52c702d (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.0b1
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="89f2cf4b5c87d43f7917d6a0d4872e6a  colander-1.0b1.tar.gz"
sha256sums="8a342bf278227be6ac96e90befa949c235e667254db17e773e79d834459be971  colander-1.0b1.tar.gz"
sha512sums="f4f0b4541d109ee196d27da73ef836ff4db42b30c9c60d7831c5a28d9d408c294ed5d239c8b98b0a3f996958dcd370f92decda179ff30d1385aeeb659baea7a0  colander-1.0b1.tar.gz"