diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/keytouch |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/keytouch')
-rw-r--r-- | extra/keytouch/ChangeLog | 18 | ||||
-rw-r--r-- | extra/keytouch/PKGBUILD | 46 | ||||
-rwxr-xr-x | extra/keytouch/Xsession | 8 | ||||
-rwxr-xr-x | extra/keytouch/keytouch.daemon | 41 | ||||
-rw-r--r-- | extra/keytouch/keytouch.desktop | 9 | ||||
-rw-r--r-- | extra/keytouch/keytouch.install | 14 |
6 files changed, 136 insertions, 0 deletions
diff --git a/extra/keytouch/ChangeLog b/extra/keytouch/ChangeLog new file mode 100644 index 000000000..24105e0d2 --- /dev/null +++ b/extra/keytouch/ChangeLog @@ -0,0 +1,18 @@ +2009-10-17 Eric Belanger <eric@archlinux.org> + + * keytouch 2.4.1-2 + * Fixed daemon script (close FS#15693) + +2008-07-20 Eric Belanger <eric@archlinux.org> + + * keytouch 2.4.1-1 + * Upstream update + * Removed unnecessary post-upgrade message + +2008-06-16 Eric Belanger <eric@archlinux.org> + + * keytouch 2.4.0-1 + * Upstream update + * Patched for glibc 2.8 + * Added to [extra] repo + * Added ChangeLog diff --git a/extra/keytouch/PKGBUILD b/extra/keytouch/PKGBUILD new file mode 100644 index 000000000..34a5c53a6 --- /dev/null +++ b/extra/keytouch/PKGBUILD @@ -0,0 +1,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 +} diff --git a/extra/keytouch/Xsession b/extra/keytouch/Xsession new file mode 100755 index 000000000..0da89f9aa --- /dev/null +++ b/extra/keytouch/Xsession @@ -0,0 +1,8 @@ +#!/bin/sh + +for script in /etc/X11/Xsession.d/*; do + if [ -x $script ]; then + . $script + fi +done +unset script diff --git a/extra/keytouch/keytouch.daemon b/extra/keytouch/keytouch.daemon new file mode 100755 index 000000000..e43bea979 --- /dev/null +++ b/extra/keytouch/keytouch.daemon @@ -0,0 +1,41 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +PID=$(pidof -o %PPID /usr/bin/keytouch-acpid) +case "$1" in + start) + stat_busy "Starting keyTouch Daemon" + if [ -x /etc/rc.d/acpid ]; then + ck_daemon acpid && /etc/rc.d/acpid start + fi + /usr/bin/keytouch-init + if [ -z "$PID" ]; then + /usr/bin/keytouch-acpid &> /dev/null & + fi + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon keytouch + stat_done + fi + ;; + stop) + stat_busy "Stopping keyTouch Daemon" + [ ! -z "$PID" ] && kill $PID &>/dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon keytouch + stat_done + fi + ;; + restart) + $0 stop + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/extra/keytouch/keytouch.desktop b/extra/keytouch/keytouch.desktop new file mode 100644 index 000000000..f127b1041 --- /dev/null +++ b/extra/keytouch/keytouch.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=keyTouch +Comment=Keyboard configuration tool +Icon=/usr/share/keytouch/pixmaps/icon.png +Exec=/usr/bin/keytouch +Terminal=false +Type=Application +Categories=Application;Utility +StartupNotify=false diff --git a/extra/keytouch/keytouch.install b/extra/keytouch/keytouch.install new file mode 100644 index 000000000..c3b9c9cec --- /dev/null +++ b/extra/keytouch/keytouch.install @@ -0,0 +1,14 @@ +post_install() { + cat << EOF +==> To use keytouch: +o Add keytouch to your DAEMONS line in /etc/rc.conf +o Add: + /etc/X11/Xsession +to your ~/.xinitrc +o You'll need to have either gksu (pacman -S gksu) or kdesu (pacman -S kdebase) installed. + +==> If your keyboard is not supported "out of the box": +o Go to http://keytouch.sourceforge.net/dl-keyboards.html to see if your keyboard has been added + or install keytouch-editor to make your custom keyboard file. +EOF +} |