diff options
author | Lukas Sabota | 2015-12-16 01:04:47 -0500 |
---|---|---|
committer | Lukas Sabota | 2015-12-16 01:04:47 -0500 |
commit | 543f65fe173183388f64c1d29c9c1929b7907949 (patch) | |
tree | d48d98f0100f11ead0e96b4fe95ddc794663c1f8 | |
download | aur-543f65fe173183388f64c1d29c9c1929b7907949.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 51 | ||||
-rw-r--r-- | qjoypad.desktop | 13 | ||||
-rw-r--r-- | qjoypad.install | 12 | ||||
-rw-r--r-- | x11.patch | 11 |
5 files changed, 112 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..dc7f5322bbe0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +# Generated by mksrcinfo v8 +# Wed Dec 16 06:04:40 UTC 2015 +pkgbase = qjoypad-svn + pkgdesc = Program with a QT interface that converts gamepad/joystick events into key strokes and mouse actions in XWindows (SVN-version) + pkgver = 133 + pkgrel = 1 + url = http://qjoypad.sourceforge.net/ + install = qjoypad.install + arch = i686 + arch = x86_64 + license = GPL + makedepends = subversion + depends = qt4 + depends = libxtst + provides = qjoypad + conflicts = qjoypad + source = svn+http://qjoypad.svn.sourceforge.net/svnroot/qjoypad/trunk + source = qjoypad.desktop + source = x11.patch + md5sums = SKIP + md5sums = a90839531415df510410558c47076cfc + md5sums = f6e8a44d0a4b53c7f28e6b98beb265de + +pkgname = qjoypad-svn + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..58bac3c6602e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Lukas Sabota <lukas@lwsabota.com> +# Contributor: Ismael Barros (RazZziel) <razielmine@gmail.com> + +_pkgname=qjoypad +pkgname=${_pkgname}-svn +pkgver=133 +pkgrel=1 +pkgdesc='Program with a QT interface that converts gamepad/joystick events into key strokes and mouse actions in XWindows (SVN-version)' +arch=('i686' 'x86_64') +url='http://qjoypad.sourceforge.net/' +license=('GPL') +conflicts=('qjoypad') +provides=('qjoypad') +depends=('qt4' 'libxtst') +makedepends=('subversion') +install=${_pkgname}.install + +source=("svn+http://qjoypad.svn.sourceforge.net/svnroot/${_pkgname}/trunk" + "${_pkgname}.desktop" + 'x11.patch') + +md5sums=('SKIP' + 'a90839531415df510410558c47076cfc' + 'f6e8a44d0a4b53c7f28e6b98beb265de') + +pkgver() { + cd "${srcdir}/trunk" + svnversion | tr -d [A-z] +} + +prepare() { + cd "${srcdir}/trunk/src" + patch -p3 <../../x11.patch + sed -i 's/ qmake / qmake-qt4 /' config +} + +package() { + cd "${srcdir}/trunk/src" + + ./config --prefix=/usr --install-dir=$pkgdir --devdir=/dev/input --debug --qmake4bin=/usr/lib/qt4/bin/qmake + make + + make DESTDIR="${pkgdir}/" install + + install -d "${pkgdir}/usr/share/applications/" + install -d "${pkgdir}/usr/share/icons/hicolor/24x24/apps/" + install -d "${pkgdir}/usr/share/icons/hicolor/64x64/apps/" + install -m644 "${srcdir}/qjoypad.desktop" "${pkgdir}/usr/share/applications/" + install -m644 "${srcdir}/trunk/icons/gamepad4-24x24.png" "${pkgdir}/usr/share/icons/hicolor/24x24/apps/qjoypad.png" + install -m644 "${srcdir}/trunk/icons/gamepad4-64x64.png" "${pkgdir}/usr/share/icons/hicolor/64x64/apps/qjoypad.png" +} diff --git a/qjoypad.desktop b/qjoypad.desktop new file mode 100644 index 000000000000..633db1da851f --- /dev/null +++ b/qjoypad.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Name=QJoyPad +GenericName=Simulated Keystrokes +GenericName[de]=Simulierte Tastendrücke +Comment=Trigger keystrokes and mouse actions with gamepads/joysticks +Comment[de]=Löse mit dem Gamepad/Joystick Tastendrücke und Mausbewegungen aus +Icon=qjoypad +Exec=qjoypad +Terminal=false +Type=Application +Categories=Utility;Game; +StartupNotify=false +Encoding=UTF-8 diff --git a/qjoypad.install b/qjoypad.install new file mode 100644 index 000000000000..68b8e971a741 --- /dev/null +++ b/qjoypad.install @@ -0,0 +1,12 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + update-desktop-database -q +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} diff --git a/x11.patch b/x11.patch new file mode 100644 index 000000000000..dee1f61c9009 --- /dev/null +++ b/x11.patch @@ -0,0 +1,11 @@ +--- branches/multikey/src/qjoypad.pro 2011/01/20 16:14:37132 ++++ branches/multikey/src/qjoypad.pro 2011/12/22 15:17:14133 +@@ -31,7 +31,7 @@ + + TEMPLATE = app + INCLUDEPATH += . +-QMAKE_LIBS += -lXtst ++QMAKE_LIBS += -lXtst -lX11 + + # Input + HEADERS += axis.h \
\ No newline at end of file |