[arch-commits] Commit in (5 files)

Felix Yan fyan at archlinux.org
Fri Oct 30 12:53:13 UTC 2015


    Date: Friday, October 30, 2015 @ 13:53:13
  Author: fyan
Revision: 145300

addpkg: python-pyrfc3339 0.2-1

Added:
  python-pyrfc3339/
  python-pyrfc3339/repos/
  python-pyrfc3339/trunk/
  python-pyrfc3339/trunk/LICENSE.txt
  python-pyrfc3339/trunk/PKGBUILD

-------------+
 LICENSE.txt |   19 +++++++++++++++++++
 PKGBUILD    |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)

Added: python-pyrfc3339/trunk/LICENSE.txt
===================================================================
--- python-pyrfc3339/trunk/LICENSE.txt	                        (rev 0)
+++ python-pyrfc3339/trunk/LICENSE.txt	2015-10-30 12:53:13 UTC (rev 145300)
@@ -0,0 +1,19 @@
+Copyright (c) 2010 Kurt Raschke
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.

Added: python-pyrfc3339/trunk/PKGBUILD
===================================================================
--- python-pyrfc3339/trunk/PKGBUILD	                        (rev 0)
+++ python-pyrfc3339/trunk/PKGBUILD	2015-10-30 12:53:13 UTC (rev 145300)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Gordian Edenhofer <gordian.edenhofer[at]yahoo[dot]de>
+
+pkgname=(python-pyrfc3339 python2-pyrfc3339)
+pkgver=0.2
+pkgrel=1
+pkgdesc="Parses and generates RFC 3339-compliant timestamps using Python datetime.datetime objects."
+arch=('any')
+license=('MIT')
+url="https://pypi.python.org/pypi/pyRFC3339"
+makedepends=('python2-setuptools' 'python-pytz' 'python2-pytz')
+checkdepends=('python-nose' 'python2-nose')
+source=("https://pypi.python.org/packages/source/p/pyRFC3339/pyRFC3339-${pkgver}.tar.gz"
+        LICENSE.txt)
+md5sums=('5e0f7e40e363812180fffaae52daf2e6'
+         'e76ad77b87e8abfc23172e32c99b0572')
+
+prepare() {
+  cp -a pyRFC3339-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir/pyRFC3339-$pkgver"
+  python setup.py build
+
+  cd "$srcdir/pyRFC3339-$pkgver-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/pyRFC3339-$pkgver"
+  python setup.py test
+
+  cd "$srcdir/pyRFC3339-$pkgver-py2"
+  python2 setup.py test
+}
+
+package_python-pyrfc3339() {
+  depends=('python-pytz')
+
+  cd "$srcdir/pyRFC3339-$pkgver"
+  python setup.py install --root="$pkgdir/" --optimize=1
+  install -D -m644 ../LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}
+
+package_python2-pyrfc3339() {
+  depends=('python2-pytz')
+
+  cd "$srcdir/pyRFC3339-$pkgver-py2"
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+  install -D -m644 ../LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}


Property changes on: python-pyrfc3339/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list