updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / keylog / PKGBUILD
blob39cc07fe8c28a36fe971256c3b0f6213c7a08285
1 # Contributor: Thomas Mudrunka <harvie@@email..cz>
2 # Maintainer: Thomas Mudrunka <harvie@@email..cz>
3 # You can also contact me on http://blog.harvie.cz/
5 pkgname=keylog
6 pkgver=0.6
7 pkgrel=2
8 pkgdesc="Simple keyloger using /dev/input."
9 arch=('any')
10 license=('GPL')
11 url="http://aur.archlinux.org/packages.php?ID=26497"
12 depends=('glibc')
13 source=('klog.c')
14 md5sums=('a6ba53cdd6df91203e5a15ba7098b0c8')
16 build() {
17         mkdir -p ${pkgdir}/usr/bin
18         gcc ${startdir}/klog.c -o ${pkgdir}/usr/bin/keylog
20 mkdir -p ${pkgdir}/usr/share/applications
22         echo '[Desktop Entry]
23 Encoding=UTF-8
24 Name=KeyLog
25 Comment=Reads keystrokes from /dev/input events
26 Comment[cs]=Zobrazuje stisky kláves zjištěné z událostí v /dev/input
27 GenericName=Key Loger
28 Type=Application
29 TryExec=/usr/bin/xterm
30 Exec=xterm -e "sudo /usr/bin/keylog /dev/input/event1; sleep 5;"
31 Icon=preferences-desktop-keyboard
32 Terminal=false
33 Categories=Application;System;
34 ' > ${pkgdir}/usr/share/applications/key-loger.desktop
36         chmod -R 755 ${pkgdir}/