diff options
-rw-r--r-- | testing/py-dateutil/APKBUILD | 45 |
1 files changed, 30 insertions, 15 deletions
diff --git a/testing/py-dateutil/APKBUILD b/testing/py-dateutil/APKBUILD index f1915d8166..80cbe902c5 100644 --- a/testing/py-dateutil/APKBUILD +++ b/testing/py-dateutil/APKBUILD @@ -1,23 +1,38 @@ -# Contributor: Francesco Colista <francesco.colista@gmail.com> -# Maintainer: +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> pkgname=py-dateutil -_pkgname=python-dateutil -pkgver=1.5 -pkgrel=1 -pkgdesc="Provides powerful extensions to the standard datetime module" +pkgver=2.1 +pkgrel=0 +pkgdesc="Python extensions for datetime module" url="http://labix.org/python-dateutil" arch="noarch" -license="PYTHON" -depends= -depends_dev="python-dev py-setuptools" -makedepends="$depends_dev" +license="BSD" +depends="python" +depends_dev="" +makedepends="python-dev py-setuptools" install="" subpackages="" -source="http://labix.org/download/$_pkgname/$_pkgname-$pkgver.tar.gz" -_builddir="$srcdir"/$_pkgname-$pkgver +source="http://pypi.python.org/packages/source/p/python-dateutil/python-dateutil-$pkgver.tar.gz" + +_builddir="$srcdir"/python-dateutil-$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 --root=$pkgdir - install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/custom/${pkgname}/LICENSE + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 } -md5sums="35f3732db3f2cc4afdc68a8533b60a52 python-dateutil-1.5.tar.gz" + +md5sums="1534bb15cf311f07afaa3aacba1c028b python-dateutil-2.1.tar.gz" |