updated on Tue Jan 10 00:10:07 UTC 2012
[aur-mirror.git] / keytouch / PKGBUILD
blob843a6b2b81beabae77d766b4e6f9cac065120acd
1 # Contributor: Eric BĂ©langer <eric@archlinux.org>
2 # Contributor: mouse256 & AndyRTR
3 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
4 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
6 pkgname=keytouch
7 pkgver=2.4.1
8 pkgrel=4
9 pkgdesc="A program which allows you to easily configure the extra function keys of your keyboard"
10 arch=('i686' 'x86_64')
11 url="http://keytouch.sourceforge.net/"
12 license=('GPL')
13 depends=('libxtst' 'gnome-menus2' 'alsa-lib' 'gtk2')
14 optdepends=('acpid: for ACPI support')
15 options=('!makeflags')
16 install=keytouch.install
17 source=(http://downloads.sourceforge.net/sourceforge/keytouch/${pkgname}-${pkgver}.tar.gz \
18         keytouch.daemon keytouch.desktop Xsession)
19 md5sums=('c3a917ae9666c9649d43d9aa09ecc96a'
20          '5bd72f347f56c0524c7a7c8f44fc9a3a'
21          'c5ffe28988dc74fae812ffe204f8883b'
22          '795430001f4fdb6691d0e93b09a241a9')
23 sha1sums=('f1f26dc95c21afd404aebe2b1066e75c8313ca80'
24           '9c3ff4fd979fd0322014768bec132ddf005c7f7b'
25           '5bac2f62f1ac26caa32da02a8075dc090d981cfb'
26           '960b2fa51cfdeb2bc3fa7e086dc9f3a3be483dff')
28 build() {
29   cd "${srcdir}/${pkgname}-${pkgver}"
30   autoreconf
31   ./configure --prefix=/usr --sysconfdir=/etc 
32   make
34   cd keytouch-config
35   autoreconf
36   ./configure --prefix=/usr --sysconfdir=/etc
37   make
39   cd ../keytouch-keyboard
40   autoreconf
41   ./configure --prefix=/usr --sysconfdir=/etc
42   make
45 package() {
46   cd "${srcdir}/${pkgname}-${pkgver}"
47   install -d "${pkgdir}"/etc/{rc.d,X11/Xsession.d}
48   install -d "${pkgdir}/usr/share/keytouch"
49   make DESTDIR="${pkgdir}" install
51   cd keytouch-config
52   make DESTDIR="${pkgdir}" install
54   cd ../keytouch-keyboard
55   make DESTDIR="${pkgdir}" install
57   install -Dm755 "${srcdir}/keytouch.daemon" "${pkgdir}/etc/rc.d/keytouch"
58   install -Dm644 "${srcdir}/keytouch.desktop" "${pkgdir}/usr/share/applications/keytouch.desktop"
59   install -Dm755 "${srcdir}/Xsession" "${pkgdir}/etc/X11/Xsession"
60   chmod 755 "${pkgdir}"/etc/X11/Xsession.d/*
61   rm "${pkgdir}"/etc/rc.d/*.sh