updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / g19d / PKGBUILD
blobf848e650ce5e3dee177f350cee0ea67924d6387b
1 # Maintainer: Nuno Araujo <nuno.araujo at russo79.com>
2 pkgname=g19d
3 pkgver=0.0.10
4 pkgrel=1
5 pkgdesc="Daemon process that provides low level access to the G19 keyboard for Gnome15"
6 arch=(any)
7 url="http://www.gnome15.org/"
8 license=('GPL')
9 depends=(python2 pyusb python2-uinput python-imaging pylibg19)
10 source=(http://www.gnome15.org/downloads/Gnome15/G19/${pkgname}-${pkgver}.tar.gz
11         g19d)
12 md5sums=('461b7d89244e7747c929919781548dc2'
13          '763d2e25ca25e821d0dae7eef3a69c94')
15 build() {
16   cd "${srcdir}/${pkgname}-${pkgver}"
18   # python2 fix
19   for file in $(find . -type f -name '*' -print); do
20     sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
21     sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
22   done
24   ./configure --prefix=/usr PYTHON=python2
25   make
28 package() {
29   cd "${srcdir}/${pkgname}-${pkgver}"
31   make DESTDIR="${pkgdir}/" install
33   # install initscript
34   install -D -m 755 "${srcdir}/g19d" "${pkgdir}/etc/rc.d/g19d"
36 # vim:set ts=2 sw=2 et: