[arch-commits] Commit in python-sane/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Sat Feb 8 21:33:30 UTC 2020
Date: Saturday, February 8, 2020 @ 21:33:30
Author: jelle
Revision: 565017
upgpkg: python-sane 2.8.3-4
Remove unrequired python2 module
Modified:
python-sane/trunk/PKGBUILD
----------+
PKGBUILD | 20 +++++---------------
1 file changed, 5 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-02-08 21:31:05 UTC (rev 565016)
+++ PKGBUILD 2020-02-08 21:33:30 UTC (rev 565017)
@@ -1,15 +1,14 @@
# Maintainer: Kyle Keen <keenerd at gmail.com>
-pkgbase=python-sane
-pkgname=(python-sane python2-sane)
+pkgname=python-sane
pkgver=2.8.3
-pkgrel=3
+pkgrel=4
pkgdesc="Python interface to the SANE scanner and frame grabber."
arch=('x86_64')
url="https://python-sane.readthedocs.io/en/latest/"
license=('MIT')
-depends=('sane')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('sane' 'python')
+makedepends=('python-setuptools')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/python-pillow/Sane/archive/v${pkgver}.tar.gz")
sha256sums=('1c3aa1c246007e9e6f7b11ca2c98256ebefed66f4ff13dcf38179c721677022f')
@@ -16,19 +15,10 @@
build() {
cd "${srcdir}"/Sane-${pkgver}
python setup.py build
- python2 setup.py build
}
-package_python-sane() {
- depends+=('python')
+package() {
cd "${srcdir}"/Sane-${pkgver}
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
-
-package_python2-sane() {
- depends+=('python2')
- cd "${srcdir}"/Sane-${pkgver}
- python2 setup.py install --root="${pkgdir}" --optimize=1
- install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
-}
More information about the arch-commits
mailing list