updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / qjoypad-svn / PKGBUILD
bloba66a16f8749683dfb1eb516af6fe34ebb533fcd2
1 # Contributor: Ismael Barros (RazZziel) <razielmine@gmail.com>
3 pkgname=qjoypad-svn
4 pkgver=98
5 pkgrel=1
6 pkgdesc="Translates gamepad/joystick input into key strokes/mouse actions"
7 arch=(i686 x86_64)
8 url="http://qjoypad.sourceforge.net/"
9 license=('GPL')
10 source=(qjoypad.desktop)
11 md5sums=('9e48e4e3740ee38ad8b61d40d3a46885')
12 conflicts=("qjoypad")
13 provides=("qjoypad")
14 depends=('qt')
15 makedepends=('subversion')
16 install=install.sh
18 _svntrunk=http://qjoypad.svn.sourceforge.net/svnroot/qjoypad/trunk
19 #_svntrunk=http://qjoypad.svn.sourceforge.net/svnroot/qjoypad/tags/4.0-pre
20 _svnmod=qjoypad
22 build() {
23   cd "$srcdir"
24   if [ -d $_svnmod/.svn ]; then
25     (cd $_svnmod && svn up -r $pkgver)
26   else
27     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
28   fi
29   msg "SVN checkout done or server timeout"
31   msg "Starting make..."
32   cd $_svnmod/src
34   install -d $pkgdir/usr/
37   ./config --prefix=/usr/ --install-dir=$pkgdir || return 1
38   make || return 1
39   make install || return 1
41   install -d ${pkgdir}/usr/share/applications/ ${pkgdir}/usr/share/pixmaps/
42   install -m644 ${srcdir}/qjoypad.desktop ${pkgdir}/usr/share/applications/
43   install -m644 ${srcdir}/qjoypad/icons/gamepad2-64x64.png -m644 ${pkgdir}/usr/share/pixmaps/qjoypad.png