summaryrefslogtreecommitdiff
path: root/community/lmctl/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/lmctl/PKGBUILD')
-rw-r--r--community/lmctl/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/lmctl/PKGBUILD b/community/lmctl/PKGBUILD
new file mode 100644
index 000000000..8e8931e66
--- /dev/null
+++ b/community/lmctl/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Jeff Mickey <j@codemac.net>
+# Contributor: Shadowhand <woody.gilk@gmail.com>
+# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
+
+pkgname=lmctl
+pkgver=0.3.2
+pkgrel=6
+pkgdesc="Logitech Mouse configuration program"
+arch=('i686' 'x86_64')
+license=('GPL')
+url="http://www.bedroomlan.org/~alexios/coding_lmctl.html"
+depends=('libusb-compat')
+source=(http://www.bedroomlan.org/~alexios/files/SOFTWARE/lmctl/${pkgname}\_${pkgver}.tar.gz \
+ mx-support-cmdline.patch mx-support-man.patch mx-support.patch \
+ lmctl.rc.d lmctl.conf.d)
+md5sums=('c2acb088c95adeac68b6de8f05ddc0e4' '431521026fc07b27e21d65124dd1134f' \
+ 'cfc222209b9a9d6b203c5a00dafe57dd' '1b943fe045d8273677be43c79bfd1031'
+ 'a62ad322e93c1cbc931bba33fb0a518c' 'a77682cf2d2c9e3d1a53a6444a74ce66' )
+
+build() {
+ cd ${srcdir}/${pkgname}-0.3.1
+
+ patch -Np1 < ${srcdir}/mx-support-cmdline.patch
+ patch -Np1 < ${srcdir}/mx-support-man.patch
+ patch -Np1 < ${srcdir}/mx-support.patch
+
+ ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-0.3.1
+
+ make DESTDIR=${pkgdir} install
+
+ # install the init scripts
+ install -D -m755 ${srcdir}/lmctl.rc.d ${pkgdir}/etc/rc.d/lmctl
+ install -D -m644 ${srcdir}/lmctl.conf.d ${pkgdir}/etc/conf.d/lmctl
+}