updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / qjoypad / PKGBUILD
blobd39ee3e52c63e4fa60a51a84e0e4b2dfe01b78b2
1 # Maintainer: Fabian Schoelzel <myfirstname.mylastname@googlemail.com>
2 # Contributor: mightyjaym <jm.ambrosino@free.fr>
3 # Contributor: Travis Nickles <ryoohki7@yahoo.com>
5 pkgname=qjoypad
6 pkgver=4.1.0
7 pkgrel=1
8 pkgdesc="Trigger keystrokes and mouse actions with gamepads/joysticks"
9 arch=('i686' 'x86_64')
10 url="http://qjoypad.sourceforge.net/"
11 license=('GPL')
12 groups=()
13 depends=('qt' 'libxtst')
14 makedepends=()
15 optdepends=()
16 provides=()
17 conflicts=()
18 replaces=()
19 backup=()
20 options=()
21 install=qjoypad.install
22 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz \
23         qjoypad.desktop)
24 noextract=()
26 build() {
27   cd "${srcdir}/$pkgname-$pkgver/src"
29   ./config --prefix=/usr --install-dir=$pkgdir --devdir=/dev/input --debug
30   make || return 1
31   make DESTDIR="$pkgdir/" install
32   
33   install -d ${pkgdir}/usr/share/applications/
34   install -d ${pkgdir}/usr/share/icons/hicolor/24x24/apps/
35   install -d ${pkgdir}/usr/share/icons/hicolor/64x64/apps/
36   install -m644 ${srcdir}/qjoypad.desktop ${pkgdir}/usr/share/applications/
37   install -m644 ${srcdir}/$pkgname-$pkgver/icons/gamepad4-24x24.png ${pkgdir}/usr/share/icons/hicolor/24x24/apps/qjoypad.png
38   install -m644 ${srcdir}/$pkgname-$pkgver/icons/gamepad4-64x64.png ${pkgdir}/usr/share/icons/hicolor/64x64/apps/qjoypad.png
41 md5sums=('d4a262c29bd3955c0fe51e9a0d31f619'
42          'a90839531415df510410558c47076cfc')