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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 20:20:34 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:20:34
  Author: felixonmars
Revision: 1058049

archrelease: copy trunk to community-staging-any

Added:
  python-iso8601/repos/community-staging-any/
  python-iso8601/repos/community-staging-any/PKGBUILD
    (from rev 1058047, python-iso8601/trunk/PKGBUILD)

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

Copied: python-iso8601/repos/community-staging-any/PKGBUILD (from rev 1058047, python-iso8601/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:20:34 UTC (rev 1058049)
@@ -0,0 +1,27 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=python-iso8601
+_libname=iso8601
+pkgver=1.0.2
+pkgrel=2
+pkgdesc="Simple module to parse ISO 8601 dates"
+arch=(any)
+url="https://pyiso8601.readthedocs.io/en/latest/"
+license=('MIT')
+depends=(python)
+makedepends=(python-setuptools)
+source=(https://files.pythonhosted.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz)
+sha256sums=('27f503220e6845d9db954fb212b95b0362d8b7e6c1b2326a87061c3de93594b1')
+
+build() {
+	cd "$srcdir/$_libname-$pkgver"
+	rm -rf ../buildpy3; mkdir ../buildpy3
+	python setup.py build -b ../buildpy3
+}
+
+package() {
+	cd "$srcdir/$_libname-$pkgver"
+	rm -rf build; ln -s ../buildpy3 build
+	python setup.py install --skip-build -O1 --root="$pkgdir"
+	install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list