[arch-commits] Commit in isodate/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 15:25:03 UTC 2019
Date: Friday, October 25, 2019 @ 15:25:02
Author: felixonmars
Revision: 519018
archrelease: copy trunk to community-staging-any
Added:
isodate/repos/community-staging-any/
isodate/repos/community-staging-any/PKGBUILD
(from rev 519017, isodate/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: isodate/repos/community-staging-any/PKGBUILD (from rev 519017, isodate/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 15:25:02 UTC (rev 519018)
@@ -0,0 +1,49 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=isodate
+pkgname=('python2-isodate' 'python-isodate')
+pkgver=0.6.0
+pkgrel=4
+pkgdesc="An ISO 8601 date/time/duration parser and formatter"
+arch=('any')
+url="https://github.com/gweis/isodate/"
+license=('BSD')
+makedepends=('python2-setuptools' 'python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/i/isodate/isodate-$pkgver.tar.gz")
+sha1sums=('2c69e08c9894a9cd96c627146463260f5731df62')
+
+prepare() {
+ cp -r "$pkgbase-$pkgver" "$srcdir/python2"
+}
+
+build() {
+ cd "$srcdir/python2"
+ python2 setup.py build
+ cd "$srcdir/$pkgbase-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$srcdir/python2"
+ python2 setup.py test
+ cd "$srcdir/$pkgbase-$pkgver"
+ python setup.py test
+}
+
+package_python2-isodate() {
+ depends=('python2-six')
+
+ cd "$srcdir/python2"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+ install -d "${pkgdir}/usr/share/licenses/${pkgname}"
+ head -26 src/isodate/isodates.py > "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python-isodate() {
+ depends=('python-six')
+
+ cd "$srcdir/$pkgbase-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1
+ 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