aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-simplejson/APKBUILD
blob: 18bdb7f8dfa345da0860a56e019f888cb6863063 (plain) (blame)
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: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-simplejson
_pkgname=simplejson
pkgver=3.8.0
pkgrel=0
pkgdesc="Simple, fast, extensible JSON encoder/decoder for Python"
url="http://pypi.python.org/pypi/simplejson/"
arch="all"
license="MIT"
depends=""
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="72f3b93a6f9808df81535f79e79565a2  simplejson-3.8.0.tar.gz"
sha256sums="217e4797da3a9a4a9fbe6722e0db98070b8443a88212d7acdbd241a7668141d9  simplejson-3.8.0.tar.gz"
sha512sums="c985a0f56170f78b6c6e8f0e4b4bf50f258c8f2639524f5b14d8e07b547e336acf96ac55cf562243fff06752ceba4a05f1e6dd43f6c918159a7b3640af0f0c1d  simplejson-3.8.0.tar.gz"