Date: Monday, July 23, 2018 @ 15:33:21 Author: foutrelis Revision: 363032
archrelease: copy trunk to community-staging-x86_64 Added: python-sane/repos/community-staging-x86_64/ python-sane/repos/community-staging-x86_64/PKGBUILD (from rev 363031, python-sane/trunk/PKGBUILD) ----------+ PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) Copied: python-sane/repos/community-staging-x86_64/PKGBUILD (from rev 363031, python-sane/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-07-23 15:33:21 UTC (rev 363032) @@ -0,0 +1,35 @@ +# $Id$ +# Maintainer: Kyle Keen <keen...@gmail.com> + +pkgbase=python-sane +pkgname=(python-sane python2-sane) +pkgver=2.8.3 +pkgrel=2 +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" +}