updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / logkeys-svn / PKGBUILD
blobddc207ea5993cd5a91bd289a3665949625413331
1 # Contributor: wido <widomaker2k7@gmail.com>
2 # Maintainer: SanskritFritz (gmail)
4 pkgname=logkeys-svn
5 pkgver=92
6 pkgrel=2
7 pkgdesc="Simple keylogger also supporting USB keyboards"
8 license=('GPL3')
9 arch=('i686' 'x86_64')
10 depends=('')
11 optdepends=('logkeys-keymap: for additional keymaps')
12 makedepends=('subversion')
13 conflicts=('logkeys')
14 provides=('logkeys')
15 url="http://logkeys.googlecode.com/"
16 source=(logkeysd.sh)
17 install=logkeys.install
19 md5sums=('aed9cd7a6775d7ec42fe71dc27dbf6cf')
21 _svnmod="logkeys"
22 _svntrunk="http://logkeys.googlecode.com/svn/trunk/"
24 build() {
25         cd "$srcdir/"
26         msg "Getting source..."
27         if [ -d $_svnmod/.svn ]; then
28                 (cd $_svnmod && svn up)
29         else
30                 svn co $_svntrunk $_svnmod
31         fi
33         msg "Creating make environment..."
34         rm -rf $srcdir/$_svnmod/build/*
35         mkdir -p "$pkgdir/usr/bin/"
36         cd $srcdir/$_svnmod/build
38         msg "Starting make..."
39         ../configure --prefix=/usr
40         make || return 1
43 package() {
44         cd $srcdir/$_svnmod/build
45         make DESTDIR="$pkgdir/" install
47         install -Dm0755 "${srcdir}/logkeysd.sh" "${pkgdir}/etc/rc.d/logkeys"