diff python/py-isodate/py-isodate.sh @ 143:329cad4dc6b0

python: merge .sh and .info
author David Demelier <markand@malikania.fr>
date Mon, 11 Mar 2019 20:20:00 +0100
parents 6b378fecec94
children 25cecc6dca48
line wrap: on
line diff
--- a/python/py-isodate/py-isodate.sh	Mon Mar 11 20:12:00 2019 +0100
+++ b/python/py-isodate/py-isodate.sh	Mon Mar 11 20:20:00 2019 +0100
@@ -1,6 +1,7 @@
 #!/bin/sh
 #
 # Copyright (c) 2019 Stéphane Péquignot <contact@stephanepequignot.fr>
+# Copyright (c) 2019 David Demelier <markand@malikania.fr>
 #
 # Permission to use, copy, modify, and/or distribute this software for any
 # purpose with or without fee is hereby granted, provided that the above
@@ -15,15 +16,22 @@
 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #
 
-source ./py-isodate.info
-
-set -e
+PKGNAME=py-isodate
+PKGVERSION=0.6.0
+PKGREVISION=1
+PKGLICENSE="BSD"
+PKGSUMMARY="An ISO 8601 date/time/duration parser and formatter"
+PKGDOWNLOAD="https://files.pythonhosted.org/packages/source/i/isodate/isodate-$PKGVERSION.tar.gz"
+PKGDEPENDS="python/python"
 
-rm -rf isodate-$PKGVERSION
-tar xvaf isodate-$PKGVERSION.tar.gz
-pushd isodate-$PKGVERSION
+build()
+{
+	rm -rf isodate-$PKGVERSION
+	tar xvaf isodate-$PKGVERSION.tar.gz
+	pushd isodate-$PKGVERSION
 
-python setup.py install --root=${DESTDIR:-/} -O1
+	python setup.py install --root=${DESTDIR:-/} -O1
 
-popd
-rm -rf isodate-$PKGVERSION
+	popd
+	rm -rf isodate-$PKGVERSION
+}