diff options
author | Liam Greenough | 2017-02-12 23:22:23 +1100 |
---|---|---|
committer | Liam Greenough | 2017-02-12 23:22:23 +1100 |
commit | 16822ffa731d5666e01d5181fe9ed25749204f5b (patch) | |
tree | 56ea82b387fdcfe1befc62fba211391f0f6c2acd | |
download | aur-16822ffa731d5666e01d5181fe9ed25749204f5b.tar.gz |
Initial (and likely final) commit.
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f6bd26d2ed73 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = wejoy-git + pkgdesc = Tool to read physical joystick devices, create virtual joystick devices and output keyboard presses on a Linux system. + pkgver = r12.426cb1a + pkgrel = 1 + url = https://github.com/Vantskruv/wejoy + arch = x86_64 + license = unknown + makedepends = git + depends = lua52 + depends = libx11 + depends = libsystemd + provides = wejoy + source = git+https://github.com/Vantskruv/wejoy.git + md5sums = SKIP + +pkgname = wejoy-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ba0349c68d11 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Liam Greenough <beacon515@gmail.com> +pkgname=wejoy-git +pkgver=r12.426cb1a +pkgrel=1 +pkgdesc="Tool to read physical joystick devices, create virtual joystick devices and output keyboard presses on a Linux system." +arch=('x86_64') +url="https://github.com/Vantskruv/wejoy" +license=('unknown') +depends=('lua52' 'libx11' 'libsystemd') +makedepends=('git') +provides=('wejoy') +source=('git+https://github.com/Vantskruv/wejoy.git') +md5sums=('SKIP') + +pkgver() { + cd wejoy + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +build() { + cd $srcdir/wejoy + sh make.sh +} + +package() { + cd $pkgdir + mkdir usr + mkdir ./usr/bin + mkdir ./usr/share + mkdir ./usr/share/wejoy + cp $srcdir/wejoy/wejoy ./usr/bin/ + cp $srcdir/wejoy/*.lua ./usr/share/wejoy/ + cp $srcdir/wejoy/*.txt ./usr/share/wejoy/ + cp $srcdir/wejoy/*.md ./usr/share/wejoy +} |