aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-configobj
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2015-11-10 07:55:05 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2015-11-10 07:56:41 +0000
commit5293bf889543fa940029b17889cca569c4b93b42 (patch)
tree92c33546fce62da2844cc93d1543322b28906d0f /community/py-configobj
parentf9a516c90384a232f36d7b932fe31bd157ae8b5f (diff)
downloadaports-5293bf889543fa940029b17889cca569c4b93b42.tar.bz2
aports-5293bf889543fa940029b17889cca569c4b93b42.tar.xz
community/py-configobj: moved from main
Diffstat (limited to 'community/py-configobj')
-rw-r--r--community/py-configobj/APKBUILD56
1 files changed, 56 insertions, 0 deletions
diff --git a/community/py-configobj/APKBUILD b/community/py-configobj/APKBUILD
new file mode 100644
index 0000000000..6e8f0bcbc1
--- /dev/null
+++ b/community/py-configobj/APKBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname=py-configobj
+_realname=configobj
+pkgver=0_hg78
+_ver=0_hg
+pkgrel=1
+pkgdesc="Python library for reading and writing of configuration files (ini)"
+url="http://code.google.com/p/configobj/"
+arch="noarch"
+license="GPL"
+depends="python"
+depends_dev="mercurial"
+makedepends="$depends_dev"
+install=
+subpackages=
+source="http://dev.alpinelinux.org/archive/configobj/$_realname-$pkgver.tar.gz"
+
+_mercurial_url="https://code.google.com/p/configobj/"
+
+_builddir="$srcdir"/$_realname
+
+snapshot() {
+ mkdir -p "$srcdir"
+ cd "${SRCDEST:-$srcdir}"
+ if ! [ -d $_realname ]; then
+ hg clone $_mercurial_url || return 1
+ cd $_realname
+ _mercurial_revision=$(cd ${SRCDEST:-$srcdir}/$_realname && hg tip | grep changeset | egrep -o '[0-9]+:' | tr -d ":")
+ _mercurial_commit=$(hg identify ${SRCDEST:-$srcdir}/$_realname | awk '{ print $1 }')
+ else
+ cd $_realname
+ hg pull
+ _mercurial_revision=$(cd ${SRCDEST:-$srcdir}/$_realname && hg tip | grep changeset | egrep -o '[0-9]+:' | tr -d ":")
+ _mercurial_commit=$(hg identify ${SRCDEST:-$srcdir}/$_realname | awk '{ print $1 }')
+ fi
+
+ hg archive --prefix=$_realname/ "$SRCDEST"/${_realname}-${_ver}${_mercurial_revision}.tar.gz
+ scp "$SRCDEST"/${_realname}-${_ver}${_mercurial_revision}.tar.gz dev.alpinelinux.org:/archive/$_realname/
+}
+
+prepare() {
+ cd "$_builddir"
+ return 0
+}
+
+build() {
+ cd "$_builddir"
+ return 0
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --root="$pkgdir"
+}
+
+md5sums="5a796359bffe586dff2f86d3a182f693 configobj-0_hg78.tar.gz"