# Maintainer: Francois Boulogne pkgname=python-pyinsane pkgver=1.3.8 pkgrel=1 pkgdesc='Python implementation of the Sane API (using ctypes) and abstration layer' arch=('any') url='https://github.com/jflesch/pyinsane' license=('GPL3') depends=('libksane') optdepends=('python-pillow') provides=('python-pyinsane') conflicts=('python-pyinsane') makedepends=('python' 'python-setuptools') source=("https://github.com/jflesch/pyinsane/archive/v${pkgver}.zip") build() { cd "pyinsane-${pkgver}" python setup.py build } package() { cd "pyinsane-${pkgver}" python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } # vim:ts=2:sw=2:et: md5sums=('ac7a0b2ebc14800dc82a88bc35314069')