[arch-commits] Commit in python-jdcal/repos (3 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Sep 19 16:54:13 UTC 2015
Date: Saturday, September 19, 2015 @ 18:54:13
Author: foutrelis
Revision: 141016
archrelease: copy trunk to community-staging-any
Added:
python-jdcal/repos/community-staging-any/
python-jdcal/repos/community-staging-any/LICENSE
(from rev 141015, python-jdcal/trunk/LICENSE)
python-jdcal/repos/community-staging-any/PKGBUILD
(from rev 141015, python-jdcal/trunk/PKGBUILD)
----------+
LICENSE | 23 +++++++++++++++++++++++
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 74 insertions(+)
Copied: python-jdcal/repos/community-staging-any/LICENSE (from rev 141015, python-jdcal/trunk/LICENSE)
===================================================================
--- community-staging-any/LICENSE (rev 0)
+++ community-staging-any/LICENSE 2015-09-19 16:54:13 UTC (rev 141016)
@@ -0,0 +1,23 @@
+Copyright (c) 2011, Prasanth Nair
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+this list of conditions and the following disclaimer in the documentation
+and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copied: python-jdcal/repos/community-staging-any/PKGBUILD (from rev 141015, python-jdcal/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 16:54:13 UTC (rev 141016)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Mariusz Szczepańczyk <mszczepanczyk at gmail.com>
+
+pkgbase=python-jdcal
+pkgname=('python2-jdcal' 'python-jdcal')
+pkgver=1.0
+pkgrel=2
+pkgdesc="Julian dates, from proleptic Gregorian and Julian calendars"
+arch=('any')
+url="https://github.com/phn/jdcal"
+license=('BSD')
+makedepends=('python2-setuptools' 'python-setuptools')
+source=("http://pypi.python.org/packages/source/j/jdcal/jdcal-${pkgver}.tar.gz"
+ "LICENSE")
+md5sums=('ae4a28210426f575232cb5a48d478d08'
+ 'a933325008e394f91f4dfab09a4929fd')
+
+build() {
+ cd "$srcdir"
+ cp -a jdcal-${pkgver} jdcal-py2-${pkgver}
+
+ msg "Building Python2"
+ cd "$srcdir"/jdcal-py2-${pkgver}
+ python2 setup.py build
+
+ msg "Building Python3"
+ cd "$srcdir"/jdcal-${pkgver}
+ python setup.py build
+}
+
+package_python2-jdcal() {
+ depends=('python2')
+
+ cd "$srcdir"/jdcal-py2-${pkgver}
+
+ python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+ install -Dm644 "$srcdir"/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python-jdcal() {
+ depends=('python')
+
+ cd "$srcdir"/jdcal-${pkgver}
+
+ python setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+ install -Dm644 "$srcdir"/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
More information about the arch-commits
mailing list