summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorLinux Gamers2020-11-03 15:34:28 -0300
committerLinux Gamers2020-11-03 15:34:28 -0300
commit997668c5073308a9fe9902020f585ddc19ae83e5 (patch)
tree853ae475650284429d09e3c3c41182835e82fdfe /PKGBUILD
downloadaur-997668c5073308a9fe9902020f585ddc19ae83e5.tar.gz
50ead3e-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..dbc210e0ba9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Linux Gamers <linuxgamers@protonmail.com>
+
+pkgname=jslisten-git
+pkgrel=1
+pkgver=50ead3e
+pkgdesc="This program listen in the background for gamepad inputs. If a special button combination is getting pressed, the provided command line will be invoked."
+arch=('any')
+provides=('jslisten')
+conflicts=('jslisten')
+url="https://github.com/workinghard/jslisten"
+license=('GNU General Public License v3.0')
+makedepends=('git' 'make')
+sha256sums=('SKIP')
+source=("git+${url}")
+
+pkgver() {
+ cd $srcdir/jslisten
+ git log -1 --oneline | grep -Po "^\w+"
+}
+
+build() {
+ cd "${srcdir}/jslisten" && make
+}
+
+package() {
+ mkdir -p $pkgdir/usr/bin
+ cp "${srcdir}/jslisten/bin/jslisten" $pkgdir/usr/bin
+}