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

Kyle Keen kkeen at nymeria.archlinux.org
Mon Aug 19 08:04:47 UTC 2013


    Date: Monday, August 19, 2013 @ 10:04:47
  Author: kkeen
Revision: 95975

archrelease: copy trunk to community-testing-any

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

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

Copied: isodate/repos/community-testing-any/PKGBUILD (from rev 95974, isodate/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2013-08-19 08:04:47 UTC (rev 95975)
@@ -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"
+}




More information about the arch-commits mailing list