[arch-commits] Commit in python-jdcal/trunk (PKGBUILD)
Andrzej Giniewicz
aginiewicz at archlinux.org
Thu Oct 3 18:33:03 UTC 2019
Date: Thursday, October 3, 2019 @ 18:33:02
Author: aginiewicz
Revision: 512536
upgpkg: python-jdcal 1.4.1-2
python-jdcal: dropped python2 support
Modified:
python-jdcal/trunk/PKGBUILD
----------+
PKGBUILD | 33 +++++----------------------------
1 file changed, 5 insertions(+), 28 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-03 18:30:54 UTC (rev 512535)
+++ PKGBUILD 2019-10-03 18:33:02 UTC (rev 512536)
@@ -1,48 +1,25 @@
# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
# Contributor: Mariusz Szczepańczyk <mszczepanczyk at gmail.com>
-pkgbase=python-jdcal
-pkgname=('python2-jdcal' 'python-jdcal')
+pkgname='python-jdcal'
pkgver=1.4.1
-pkgrel=1
+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')
+depends=('python')
+makedepends=('python-setuptools')
source=("https://github.com/phn/jdcal/archive/v${pkgver}.tar.gz")
sha256sums=('6cb87959fb9293bdd577967419af735a1a0aee3ce778c443acb219b2668c6597')
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')
-
+package() {
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