[arch-commits] Commit in python-sane (3 files)
Eli Schwartz
eschwartz at archlinux.org
Wed Feb 7 00:21:43 UTC 2018
Date: Wednesday, February 7, 2018 @ 00:21:43
Author: eschwartz
Revision: 289672
archrelease: copy trunk to community-x86_64
Added:
python-sane/repos/
python-sane/repos/community-x86_64/
python-sane/repos/community-x86_64/PKGBUILD
(from rev 289671, python-sane/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-sane/repos/community-x86_64/PKGBUILD (from rev 289671, python-sane/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD (rev 0)
+++ repos/community-x86_64/PKGBUILD 2018-02-07 00:21:43 UTC (rev 289672)
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-sane
+pkgname=(python-sane python2-sane)
+pkgver=2.8.3
+pkgrel=1
+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')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/python-pillow/Sane/archive/v${pkgver}.tar.gz")
+sha256sums=('1c3aa1c246007e9e6f7b11ca2c98256ebefed66f4ff13dcf38179c721677022f')
+
+build() {
+ cd "${srcdir}"/Sane-${pkgver}
+ python setup.py build
+ python2 setup.py build
+}
+
+package_python-sane() {
+ depends+=('python')
+ 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