diff options
Diffstat (limited to 'testing/py-simplejson/APKBUILD')
-rw-r--r-- | testing/py-simplejson/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/py-simplejson/APKBUILD b/testing/py-simplejson/APKBUILD new file mode 100644 index 0000000000..dc357fafbc --- /dev/null +++ b/testing/py-simplejson/APKBUILD @@ -0,0 +1,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" |