Date: Monday, August 19, 2013 @ 09:36:44
  Author: kkeen
Revision: 95960

archrelease: copy trunk to testing-any

Added:
  isodate/repos/testing-any/
  isodate/repos/testing-any/PKGBUILD
    (from rev 95959, isodate/trunk/PKGBUILD)

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: isodate/repos/testing-any/PKGBUILD (from rev 95959, 
isodate/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD                                (rev 0)
+++ testing-any/PKGBUILD        2013-08-19 07:36:44 UTC (rev 95960)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer:
+
+pkgbase=isodate
+pkgname=('python2-isodate' 'python-isodate')
+pkgver=0.4.9
+pkgrel=2
+pkgdesc="An ISO 8601 date/time/duration parser and formater"
+arch=('any')
+url="http://pypi.python.org/pypi/isodate";
+license=('BSD')
+makedepends=('python2' 'python')
+checkdepends=('python2-setuptools' 'python-setuptools')
+source=(http://pypi.python.org/packages/source/i/isodate/$pkgbase-$pkgver.tar.gz)
+sha1sums=('fa79e46780ef3585bb052fe6c71e27c1146ceacd')
+
+check() {
+  cd "$srcdir/$pkgbase-$pkgver"
+  python2 setup.py test
+  python setup.py test
+}
+
+package_python2-isodate() {
+  depends=('python2')
+
+  cd "$srcdir/$pkgbase-$pkgver"
+  python2 setup.py install --root="$pkgdir/" --optimize=0
+  find "$pkgdir/" -name '*.pyc' -delete
+  install -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  head -26 src/isodate/isodates.py > 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python-isodate() {
+  depends=('python')
+
+  cd "$srcdir/$pkgbase-$pkgver"
+  python setup.py install --root="$pkgdir/" --optimize=0
+  find "$pkgdir/" -name '*.pyc' -delete
+  find "$pkgdir/" -type d -empty -delete
+  install -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  head -26 src/isodate/isodates.py > 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Reply via email to