[arch-commits] Commit in python-rawkit/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Wed Aug 28 10:32:39 UTC 2019
Date: Wednesday, August 28, 2019 @ 10:32:38
Author: jelle
Revision: 503805
remove python2
Modified:
python-rawkit/trunk/PKGBUILD
----------+
PKGBUILD | 21 ++++-----------------
1 file changed, 4 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-08-28 10:29:19 UTC (rev 503804)
+++ PKGBUILD 2019-08-28 10:32:38 UTC (rev 503805)
@@ -2,8 +2,7 @@
# Contributor: Eli Schwartz <eschwartz at archlinux.org>
_pkgname=rawkit
-pkgbase=python-rawkit
-pkgname=('python-rawkit' 'python2-rawkit')
+pkgname=python-rawkit
pkgver=0.6.0
pkgrel=5
pkgdesc="ctypes based libraw bindings "
@@ -10,9 +9,9 @@
arch=('any')
url="https://rawkit.readthedocs.io/"
license=('MIT')
-depends=('libraw')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-mock' 'python2-mock' 'python-pytest' 'python2-pytest')
+depends=('libraw' 'python')
+makedepends=('python-setuptools')
+checkdepends=('python-mock' 'python-pytest')
source=(${_pkgname}-${pkgver}.tar.gz::https://github.com/photoshell/rawkit/archive/v${pkgver}.tar.gz
https://github.com/photoshell/rawkit/pull/140/commits/663e90afa835d398aedd782c87b8cd0bff64bc9f.patch
libraw19-support.patch)
@@ -33,7 +32,6 @@
cd "${srcdir}"/${_pkgname}-${pkgver}
python setup.py build
- python2 setup.py build
}
check() {
@@ -40,21 +38,10 @@
cd "${srcdir}"/${_pkgname}-${pkgver}
python -m pytest
- python2 -m pytest
}
package_python-rawkit() {
- depends+=('python')
-
cd "${srcdir}"/${_pkgname}-${pkgver}
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
-
-package_python2-rawkit() {
- depends+=('python2')
-
- cd "${srcdir}"/${_pkgname}-${pkgver}
- python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
- install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}
More information about the arch-commits
mailing list