summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8345685065ab4fd4835c4771e3815b72c61816f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: Fabien Dubosson <fabien.dubosson@gmail.com>

pkgname="python2-pyinsane"
_pkgname="pyinsane"
pkgver="1.4.0"
pkgrel="1"
pkgdesc="Python implementation of the Sane API (using ctypes) and abstration layer"
arch=('any')
url="https://github.com/jflesch/pyinsane"
license=('GPL3')
makedepends=('python2' 'python2-setuptools')
depends=('python2' 'python2-pillow' 'sane')
changelog="ChangeLog"
source=("https://github.com/jflesch/${_pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('e0ba69440f366854c26cb4661bf08fdce95eefa4b99a461c5e8d057909210f55')

prepare() {
  msg "Building for python 2"
  cd "$srcdir/${_pkgname}-${pkgver}"
  python setup.py build
}

package() {
  cd "$srcdir/${_pkgname}-${pkgver}"
  python2 setup.py install --root="$pkgdir"/ --optimize=1
}

# vim:set ts=2 sw=2 et: