blob: 34a5c53a6e5a9761c74bf6b996956d56911996c9 (
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
40
41
42
43
44
45
46
|
# $Id: PKGBUILD 56013 2009-10-17 20:37:01Z eric $
# Maintainer: Eric Belanger <eric@archlinux.org>
# Contributor: mouse256 & AndyRTR
pkgname=keytouch
pkgver=2.4.1
pkgrel=2
pkgdesc="A program which allows you to easily configure the extra function keys of your keyboard"
arch=('i686' 'x86_64')
url="http://keytouch.sourceforge.net/"
license=('GPL')
depends=('libxtst' 'gnome-menus' 'alsa-lib')
makedepends=('pkgconfig')
options=('!makeflags')
install=keytouch.install
source=(http://downloads.sourceforge.net/sourceforge/keytouch/${pkgname}-${pkgver}.tar.gz \
keytouch.daemon keytouch.desktop Xsession)
md5sums=('c3a917ae9666c9649d43d9aa09ecc96a' 'a35776aee9361577220f718be81c2b4d'\
'c5ffe28988dc74fae812ffe204f8883b' '795430001f4fdb6691d0e93b09a241a9')
sha1sums=('f1f26dc95c21afd404aebe2b1066e75c8313ca80' 'af23f4526cb1f3e5b9a3680af6a24d1566dabb7d'\
'5bac2f62f1ac26caa32da02a8075dc090d981cfb' '960b2fa51cfdeb2bc3fa7e086dc9f3a3be483dff')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr --sysconfdir=/etc || return 1
make || return 1
install -d "${pkgdir}"/etc/{rc.d,X11/Xsession.d} || return 1
install -d "${pkgdir}/usr/share/keytouch" || return 1
make DESTDIR="${pkgdir}" install || return 1
cd "${srcdir}/${pkgname}-${pkgver}/keytouch-config"
./configure --prefix=/usr --sysconfdir=/etc || return 1
make || return 1
make DESTDIR="${pkgdir}" install || return 1
cd "${srcdir}/${pkgname}-${pkgver}/keytouch-keyboard"
./configure --prefix=/usr --sysconfdir=/etc || return 1
make || return 1
make DESTDIR="${pkgdir}" install || return 1
install -D -m755 "${srcdir}/keytouch.daemon" "${pkgdir}/etc/rc.d/keytouch" || return 1
install -D -m644 "${srcdir}/keytouch.desktop" "${pkgdir}/usr/share/applications/keytouch.desktop" || return 1
install -D -m755 "${srcdir}/Xsession" "${pkgdir}/etc/X11/Xsession" || return 1
chmod 755 "${pkgdir}"/etc/X11/Xsession.d/* || return 1
rm "${pkgdir}"/etc/rc.d/*.sh
}
|