1 # Maintainer: Nuno Araujo <nuno.araujo at russo79.com>
5 pkgdesc="Daemon process that provides low level access to the G19 keyboard for Gnome15"
7 url="http://www.gnome15.org/"
9 depends=(python2 pyusb python2-uinput python-imaging pylibg19)
10 source=(http://www.gnome15.org/downloads/Gnome15/G19/${pkgname}-${pkgver}.tar.gz
12 md5sums=('461b7d89244e7747c929919781548dc2'
13 '763d2e25ca25e821d0dae7eef3a69c94')
16 cd "${srcdir}/${pkgname}-${pkgver}"
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
24 ./configure --prefix=/usr PYTHON=python2
29 cd "${srcdir}/${pkgname}-${pkgver}"
31 make DESTDIR="${pkgdir}/" install
34 install -D -m 755 "${srcdir}/g19d" "${pkgdir}/etc/rc.d/g19d"
36 # vim:set ts=2 sw=2 et: