[arch-commits] Commit in python-iso8601/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 9 15:52:33 UTC 2020
Date: Monday, November 9, 2020 @ 15:52:33
Author: felixonmars
Revision: 747207
archrelease: copy trunk to community-staging-any
Added:
python-iso8601/repos/community-staging-any/
python-iso8601/repos/community-staging-any/PKGBUILD
(from rev 747204, python-iso8601/trunk/PKGBUILD)
----------+
PKGBUILD | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
Copied: python-iso8601/repos/community-staging-any/PKGBUILD (from rev 747204, python-iso8601/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 15:52:33 UTC (rev 747207)
@@ -0,0 +1,27 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=python-iso8601
+_libname=iso8601
+pkgver=0.1.13
+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=('f7dec22af52025d4526be94cc1303c7d8f5379b746a3f54a8c8446384392eeb1')
+
+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