[arch-commits] Commit in python-iso8601/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 15:22:04 UTC 2019
Date: Friday, October 25, 2019 @ 15:22:04
Author: felixonmars
Revision: 518999
archrelease: copy trunk to community-staging-any
Added:
python-iso8601/repos/community-staging-any/
python-iso8601/repos/community-staging-any/PKGBUILD
(from rev 518998, python-iso8601/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: python-iso8601/repos/community-staging-any/PKGBUILD (from rev 518998, python-iso8601/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 15:22:04 UTC (rev 518999)
@@ -0,0 +1,42 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgbase=python-iso8601
+pkgname=(python-iso8601 python2-iso8601)
+_libname=iso8601
+pkgver=0.1.12
+pkgrel=3
+pkgdesc="Simple module to parse ISO 8601 dates"
+arch=(any)
+url="https://pyiso8601.readthedocs.io/en/latest/"
+license=('MIT')
+source=(https://files.pythonhosted.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz)
+makedepends=(python-setuptools python2-setuptools)
+sha256sums=('49c4b20e1f38aa5cf109ddcd39647ac419f928512c869dc01d5c7098eddede82')
+
+build() {
+ cd "$srcdir/$_libname-$pkgver"
+
+ rm -rf ../buildpy3; mkdir ../buildpy3
+ python setup.py build -b ../buildpy3
+
+ rm -rf ../buildpy2; mkdir ../buildpy2
+ python2 setup.py build -b ../buildpy2
+}
+
+package_python-iso8601() {
+ depends=(python)
+
+ 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"
+}
+
+package_python2-iso8601() {
+ depends=(python2)
+
+ cd "$srcdir/$_libname-$pkgver"
+ rm -rf build; ln -s ../buildpy2 build
+ python2 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