summaryrefslogtreecommitdiff
path: root/community/lomoco/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/lomoco/PKGBUILD
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/lomoco/PKGBUILD')
-rw-r--r--community/lomoco/PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/community/lomoco/PKGBUILD b/community/lomoco/PKGBUILD
new file mode 100644
index 000000000..fc8ca5598
--- /dev/null
+++ b/community/lomoco/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 68931 2012-04-06 00:04:27Z dreisner $
+# Maintainer: Jeff Mickey <j@codemac.net>
+# Contributor: Shadowhand <woody.gilk@gmail.com>
+
+pkgname=lomoco
+pkgver=1.0
+pkgrel=8
+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_mx518.patch::https://bugs.archlinux.org/task/28180?getfile=8163"
+ lomoco_mouse.conf
+ lomoco.sh)
+md5sums=('f5197d0a3ee81229c3eecc1e03f7b08d'
+ '87aeccb99413faf9e49453215c3d0b8a'
+ '182b10a7e4a1828a93c1d55ef7f81b97'
+ 'bc92f661641265b33b27895ef24028fd')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ patch -p1 <$srcdir/lomoco_mx518.patch
+ ./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}/usr/lib/udev/rules.d/80-lomoco.rules
+ install -D -m 755 ../lomoco.sh ${pkgdir}/usr/lib/udev/lomoco.sh
+ install -D -m 644 ../lomoco_mouse.conf ${pkgdir}/etc/udev/lomoco_mouse.conf
+}