aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-simplejson/APKBUILD
blob: dc357fafbc3f763edc8f80b1b8255949b2290202 (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer:
pkgname=py-simplejson
_name=simplejson
pkgver=2.6.2
pkgrel=0
pkgdesc="Simple, fast, extensible JSON encoder/decoder for Python"
url="http://pypi.python.org/pypi/simplejson/"
arch="all"
license="PSF"
depends=""
depends_dev="python-dev"
makedepends="$depends_dev"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/s/simplejson/simplejson-2.6.2.tar.gz"
_builddir=${srcdir}/${_name}-${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
}

package() {
	cd "$_builddir"
	python setup.py install --root="$pkgdir"
}

md5sums="9b41cd412dfac7c002aeca61ab0fdfe2  simplejson-2.6.2.tar.gz"