[arch-commits] Commit in python-iso8601/repos (2 files)
Felix Yan
fyan at archlinux.org
Sat Sep 19 15:28:37 UTC 2015
Date: Saturday, September 19, 2015 @ 17:28:37
Author: fyan
Revision: 140902
archrelease: copy trunk to community-staging-any
Added:
python-iso8601/repos/community-staging-any/
python-iso8601/repos/community-staging-any/PKGBUILD
(from rev 140901, python-iso8601/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: python-iso8601/repos/community-staging-any/PKGBUILD (from rev 140901, python-iso8601/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 15:28:37 UTC (rev 140902)
@@ -0,0 +1,45 @@
+# $Id: PKGBUILD 106746 2014-03-07 08:11:41Z mtorromeo $
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgbase=python-iso8601
+pkgname=(python-iso8601 python2-iso8601)
+_libname=iso8601
+pkgver=0.1.10
+pkgrel=3
+pkgdesc="Simple module to parse ISO 8601 dates"
+arch=(any)
+url="http://pypi.python.org/pypi/iso8601"
+license=('MIT')
+source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz)
+makedepends=(python-setuptools python2-setuptools)
+
+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"
+ #cd "$srcdir/sybren-python-rsa-8f50f506b4a2"
+ 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"
+}
+
+sha256sums=('e712ff3a18604833f5073e836aad795b21170b19bbef70947c441ed89d0ac0e1')
More information about the arch-commits
mailing list