Date: Wednesday, February 7, 2018 @ 00:21:11 Author: eschwartz Revision: 289671
Split out python-sane from the python-pillow package Added: python-sane/ python-sane/repo/ python-sane/trunk/ python-sane/trunk/PKGBUILD ----------+ PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) Added: python-sane/trunk/PKGBUILD =================================================================== --- python-sane/trunk/PKGBUILD (rev 0) +++ python-sane/trunk/PKGBUILD 2018-02-07 00:21:11 UTC (rev 289671) @@ -0,0 +1,35 @@ +# $Id$ +# Maintainer: Kyle Keen <[email protected]> + +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" +} Property changes on: python-sane/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property
