[arch-commits] Commit in python-jdcal/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Jun 30 17:51:07 UTC 2018


    Date: Saturday, June 30, 2018 @ 17:51:07
  Author: felixonmars
Revision: 348722

archrelease: copy trunk to community-staging-any

Added:
  python-jdcal/repos/community-staging-any/
  python-jdcal/repos/community-staging-any/PKGBUILD
    (from rev 348720, python-jdcal/trunk/PKGBUILD)

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

Copied: python-jdcal/repos/community-staging-any/PKGBUILD (from rev 348720, python-jdcal/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 17:51:07 UTC (rev 348722)
@@ -0,0 +1,49 @@
+# $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.4
+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=("https://github.com/phn/jdcal/archive/v${pkgver}.tar.gz")
+md5sums=('d655a58ddd4f0307bdbd394b93e48eca')
+
+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 LICENSE.txt "$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 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+



More information about the arch-commits mailing list