1 # Maintainer: Jeff Mickey <j@codemac.net>
2 # Contributor: Shadowhand <woody.gilk@gmail.com>
7 url="http://www.lomoco.org/"
8 pkgdesc="Logitech USB mouse configuration program"
12 arch=('i686' 'x86_64')
13 source=(http://www.lomoco.org/${pkgname}-${pkgver}.tar.gz
16 md5sums=('f5197d0a3ee81229c3eecc1e03f7b08d'
17 '182b10a7e4a1828a93c1d55ef7f81b97'
18 'bc92f661641265b33b27895ef24028fd')
20 backup=(etc/udev/lomoco_mouse.conf)
24 cd ${srcdir}/${pkgname}-${pkgver}
25 ./autogen.sh --prefix=/usr --mandir=/usr/share/man
28 make DESTDIR=${pkgdir} install
30 # Fix and install udev rules and helpers
31 sed -i 's|/etc/sysconfig/logitech_mouse|/etc/udev/lomoco_mouse.conf|g' udev/udev.lomoco
32 sed -i 's|RUN="lomoco"|RUN+="lomoco.sh"|g' udev/lomoco.rules
33 sed -i 's|SYSFS|ATTR|' udev/lomoco.rules
34 install -D -m 644 udev/lomoco.rules ${pkgdir}/etc/udev/rules.d/80-lomoco.rules
35 install -D -m 755 ../lomoco.sh ${pkgdir}/lib/udev/lomoco.sh
36 install -D -m 644 ../lomoco_mouse.conf ${pkgdir}/etc/udev/