1 # Contributor: Bjorn Lindeijer <bjorn lindeijer nl>
2 # Contributor: M Rawash <mrawash@gmail.com>
3 # Maintainer: J. W. Birdsong <jwbirdsong AT gmail DOT com>
8 pkgdesc="Gnome panel and control center applets to configure and monitor graphics tablet devices."
9 url="http://alexmac.cc/tablet-apps/"
11 arch=('i686' 'x86_64')
12 depends=('gnome-python-desktop')
13 source=(http://alexmac.cc/tablet-apps/$pkgname-$pkgver.tar.bz2
14 http://alexmac.cc/tablet-apps/$pkgname-addons.tar.gz)
15 md5sums=('6a7afd1b06941c5128f215c04d18c306'
16 'efc5561c3e99f3f9010493fac2b656a9')
19 cd $srcdir/$pkgname-$pkgver
21 # Make app more freedesktop compliant - DIRRRTY!!
22 sed -i 's/\/usr\/share\/tablet-capplet\/input-tablet.svg/input-tablet/' tablet-capplet.desktop
23 sed -i 's/set_from_file(\"\/usr\/share\/pressure-applet\/input-tablet.png\"/set_from_icon_name(\"input-tablet\",\ 16/' pressure-applet.py
24 sed -i 's/gnome-main-menu/input-tablet/' pressure-applet.server
26 mv -f $srcdir/tablet-capplet.py $srcdir/$pkgname-$pkgver
27 mv -f $srcdir/tablet-capplet.glade $srcdir/$pkgname-$pkgver
28 sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' *.py
30 install -D pressure-applet.py $pkgdir/usr/bin/pressure-applet.py
31 install -D -m644 pressure-applet.server $pkgdir/usr/lib/bonobo/servers/pressure-applet.server
33 mkdir -p $pkgdir/usr/share/tablet-capplet
34 cp tablet-capplet.glade $pkgdir/usr/share/tablet-capplet/
36 install -D tablet-capplet.py $pkgdir/usr/bin/tablet-capplet.py
37 install -D -m644 tablet-capplet.desktop $pkgdir/usr/share/applications/tablet-capplet.desktop