upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-sane / trunk / PKGBUILD
blob5fc5bec13f3fa3ec18b45c2e17d82f4d9a8a9c39
1 # Maintainer: Kyle Keen <keenerd@gmail.com>
3 pkgname=python-sane
4 pkgver=2.9.1
5 pkgrel=4
6 pkgdesc="Python interface to the SANE scanner and frame grabber."
7 arch=('x86_64')
8 url="https://python-sane.readthedocs.io/en/latest/"
9 license=('MIT')
10 depends=('sane' 'python')
11 makedepends=('python-setuptools')
12 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/python-pillow/Sane/archive/v${pkgver}.tar.gz")
13 sha256sums=('a82c677e0e4caff89f1aaac4cbf2d1d4ee6cd9178b391c88857254a1e42991f8')
15 build() {
16   cd "${srcdir}"/Sane-${pkgver}
17   python setup.py build
20 package() {
21   cd "${srcdir}"/Sane-${pkgver}
22   python setup.py install --root="$pkgdir" --optimize=1
23   install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"