summaryrefslogtreecommitdiff
path: root/community/lmctl/PKGBUILD
blob: 8e8931e669a38b8b341ae02df497f9831eaf63e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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
}