summaryrefslogtreecommitdiff
path: root/extra/keytouch/PKGBUILD
blob: b768a4e09ada7d0b76407ff99be69475da4dc399 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
# $Id: PKGBUILD 128421 2011-06-23 23:07:34Z eric $
# Contributor: Eric Bélanger <eric@archlinux.org>
# Contributor: mouse256 & AndyRTR
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=keytouch
pkgver=2.4.1
pkgrel=3
pkgdesc="A program which allows you to easily configure the extra function keys of your keyboard"
arch=('i686' 'x86_64' 'mips64el')
url="http://keytouch.sourceforge.net/"
license=('GPL')
depends=('libxtst' 'gnome-menus' 'alsa-lib' 'gtk2')
optdepends=('acpid: for ACPI support')
options=('!makeflags')
install=keytouch.install
source=(http://downloads.sourceforge.net/sourceforge/keytouch/${pkgname}-${pkgver}.tar.gz \
        keytouch.daemon keytouch.desktop Xsession)
md5sums=('c3a917ae9666c9649d43d9aa09ecc96a'
         '5bd72f347f56c0524c7a7c8f44fc9a3a'
         'c5ffe28988dc74fae812ffe204f8883b'
         '795430001f4fdb6691d0e93b09a241a9')
sha1sums=('f1f26dc95c21afd404aebe2b1066e75c8313ca80'
          '9c3ff4fd979fd0322014768bec132ddf005c7f7b'
          '5bac2f62f1ac26caa32da02a8075dc090d981cfb'
          '960b2fa51cfdeb2bc3fa7e086dc9f3a3be483dff')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr --sysconfdir=/etc
  make

  cd keytouch-config
  ./configure --prefix=/usr --sysconfdir=/etc
  make

  cd ../keytouch-keyboard
  ./configure --prefix=/usr --sysconfdir=/etc
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  install -d "${pkgdir}"/etc/{rc.d,X11/Xsession.d}
  install -d "${pkgdir}/usr/share/keytouch"
  make DESTDIR="${pkgdir}" install

  cd keytouch-config
  make DESTDIR="${pkgdir}" install

  cd ../keytouch-keyboard
  make DESTDIR="${pkgdir}" install

  install -Dm755 "${srcdir}/keytouch.daemon" "${pkgdir}/etc/rc.d/keytouch"
  install -Dm644 "${srcdir}/keytouch.desktop" "${pkgdir}/usr/share/applications/keytouch.desktop"
  install -Dm755 "${srcdir}/Xsession" "${pkgdir}/etc/X11/Xsession"
  chmod 755 "${pkgdir}"/etc/X11/Xsession.d/*
  rm "${pkgdir}"/etc/rc.d/*.sh
}