[arch-commits] Commit in isodate/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Sep 19 17:40:15 UTC 2015


    Date: Saturday, September 19, 2015 @ 19:40:15
  Author: foutrelis
Revision: 141058

archrelease: copy trunk to community-staging-any

Added:
  isodate/repos/community-staging-any/
  isodate/repos/community-staging-any/PKGBUILD
    (from rev 141057, isodate/trunk/PKGBUILD)

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

Copied: isodate/repos/community-staging-any/PKGBUILD (from rev 141057, isodate/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 17:40:15 UTC (rev 141058)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer:
+
+pkgbase=isodate
+pkgname=('python2-isodate' 'python-isodate')
+pkgver=0.5.1
+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=('b4ee406451fbc95cf12beac368a7155704c52635')
+
+build() {
+  cp -r "$pkgbase-$pkgver" "$srcdir/python2"
+}
+
+check() {
+  cd "$srcdir/python2"
+  python2 setup.py test
+  cd "$srcdir/$pkgbase-$pkgver"
+  python setup.py test
+}
+
+package_python2-isodate() {
+  depends=('python2')
+
+  cd "$srcdir/python2"
+  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"
+}



More information about the arch-commits mailing list