updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pylibg19 / PKGBUILD
blob1ca34420f0c9f2a5a75b5b632999e03e717f45f9
1 # Maintainer: Nuno Araujo <nuno.araujo at russo79.com>
2 pkgname=pylibg19
3 pkgver=0.0.3
4 pkgrel=1
5 pkgdesc="Basis for G19 support in Gnome15"
6 arch=(any)
7 url="http://www.gnome15.org/"
8 license=('GPL')
9 depends=(python2 pyusb python-imaging)
10 source=(http://www.gnome15.org/downloads/Gnome15/G19/${pkgname}-${pkgver}.tar.gz)
11 md5sums=('608874d1a2884bd15769f128cd0f2b6c')
13 build() {
14   cd "${srcdir}/${pkgname}-${pkgver}"
16   # python2 fix
17   for file in $(find . -type f -name '*' -print); do
18     sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
19     sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
20   done
22   python2 setup.py build
25 package() {
26   cd "${srcdir}/${pkgname}-${pkgver}"
28   python2 setup.py install --prefix='/usr' --root=${pkgdir}
31 # vim:set ts=2 sw=2 et: