summaryrefslogtreecommitdiff
path: root/community/lomoco/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-10-29 23:14:54 +0000
committerroot <root@rshg054.dnsready.net>2011-10-29 23:14:54 +0000
commit4fd31f219f19dfc2168702cef9421eaaccd9b3e6 (patch)
tree709f501e92b9474c343dce5189e76e0f60301d4b /community/lomoco/PKGBUILD
parent807f42c30ddb00c4e2d4034ce1720d7cb494e074 (diff)
Sat Oct 29 23:14:54 UTC 2011
Diffstat (limited to 'community/lomoco/PKGBUILD')
-rw-r--r--community/lomoco/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community/lomoco/PKGBUILD b/community/lomoco/PKGBUILD
new file mode 100644
index 000000000..094547913
--- /dev/null
+++ b/community/lomoco/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Jeff Mickey <j@codemac.net>
+# Contributor: Shadowhand <woody.gilk@gmail.com>
+
+pkgname=lomoco
+pkgver=1.0
+pkgrel=6
+url="http://www.lomoco.org/"
+pkgdesc="Logitech USB mouse configuration program"
+license=('GPL')
+depends=('libusb-compat')
+replaces=('lmctl')
+arch=('i686' 'x86_64')
+options=(!libtool)
+backup=(etc/udev/lomoco_mouse.conf)
+source=(http://www.lomoco.org/${pkgname}-${pkgver}.tar.gz
+ lomoco_mouse.conf
+ lomoco.sh)
+md5sums=('f5197d0a3ee81229c3eecc1e03f7b08d'
+ '182b10a7e4a1828a93c1d55ef7f81b97'
+ 'bc92f661641265b33b27895ef24028fd')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ ./autogen.sh --prefix=/usr --mandir=/usr/share/man
+ make
+ make udev-rules
+ make DESTDIR=${pkgdir} install
+
+ # Fix and install udev rules and helpers
+ sed -i 's|/etc/sysconfig/logitech_mouse|/etc/udev/lomoco_mouse.conf|g' udev/udev.lomoco
+ sed -i 's|RUN="lomoco"|RUN+="lomoco.sh"|g' udev/lomoco.rules
+ sed -i 's|SYSFS|ATTR|' udev/lomoco.rules
+ install -D -m 644 udev/lomoco.rules ${pkgdir}/etc/udev/rules.d/80-lomoco.rules
+ install -D -m 755 ../lomoco.sh ${pkgdir}/lib/udev/lomoco.sh
+ install -D -m 644 ../lomoco_mouse.conf ${pkgdir}/etc/udev/
+}