[arch-commits] Commit in isodate/repos (2 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Tue Nov 30 20:19:14 UTC 2021
Date: Tuesday, November 30, 2021 @ 20:19:13
Author: foutrelis
Revision: 1057996
archrelease: copy trunk to community-staging-any
Added:
isodate/repos/community-staging-any/
isodate/repos/community-staging-any/PKGBUILD
(from rev 1057995, isodate/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: isodate/repos/community-staging-any/PKGBUILD (from rev 1057995, isodate/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 20:19:13 UTC (rev 1057996)
@@ -0,0 +1,31 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=isodate
+pkgname=('python-isodate')
+pkgver=0.6.0
+pkgrel=8
+pkgdesc="An ISO 8601 date/time/duration parser and formatter"
+arch=('any')
+url="https://github.com/gweis/isodate/"
+license=('BSD')
+depends=('python-six')
+makedepends=('python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/i/isodate/isodate-$pkgver.tar.gz")
+sha1sums=('2c69e08c9894a9cd96c627146463260f5731df62')
+
+build() {
+ cd "$srcdir/$pkgbase-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$srcdir/$pkgbase-$pkgver"
+ python setup.py test
+}
+
+package_python-isodate() {
+ 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