updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gnome15 / PKGBUILD
blob8968fae24a7fc04ccb63e91b4cecd511644e91f4
1 # Maintainer: Nuno Araujo <nuno.araujo at russo79.com>
2 pkgname=gnome15
3 pkgver=0.7.7
4 pkgrel=2
5 pkgdesc="Gnome tools for the Logitech G Series Keyboards And Z-10 Speakers"
6 arch=(any)
7 url="http://www.gnome15.org"
8 license=('GPL')
9 depends=(python2 python-imaging python2-cairo dbus-python pygtk python2-pyinotify
10          python-lxml pygobject pyxdg pyusb python-rsvg python-xlib 
11          hicolor-icon-theme python-virtkey python2-pyinputevent)
12 optdepends=('python2-setproctitle: Allows a process to change its title')
13 conflicts=('gnome15-systemtray')
14 install=$pkgname.install
15 source=(http://www.gnome15.org/downloads/Gnome15/Required/${pkgname}-${pkgver}.tar.gz
16         python2.patch)
17 md5sums=('ceac15b37409158a443dcc2d38121fe2'
18          'bd5abfdb0c8799b2fb24a1c3411b1f40')
20 build() {
21   cd "${srcdir}/${pkgname}-${pkgver}"
23   patch -Np2 -i ${srcdir}/python2.patch
25   # python2 fix
26   for file in $(find . -type f -name '*' -print); do
27     sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
28     sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
29   done
31   ./configure \
32     --prefix=/usr --sysconfdir=/etc \
33     --enable-kernel-driver \
34     --enable-g19direct-driver --enable-g19-driver \
35     --enable-g15-driver --enable-g15direct-driver \
36     --disable-indicator --enable-systemtray --disable-applet \
37     --enable-udev=/etc/udev/rules.d --enable-udevgroup=gnome15 PYTHON=python2
38   make
41 package() {
42   cd "${srcdir}/${pkgname}-${pkgver}"
44   make DESTDIR="${pkgdir}/" install
47 # vim:set ts=2 sw=2 et: