summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFabioLolix2021-07-18 19:44:14 +0200
committerFabioLolix2021-07-18 19:44:14 +0200
commitf780e67ac11c2e7dade3fffa4ce956265b0f707e (patch)
tree505d9bb5c807b3f8d0ed53acfcd09d4b48732a49 /PKGBUILD
parent997668c5073308a9fe9902020f585ddc19ae83e5 (diff)
downloadaur-jslisten-git.tar.gz
revision
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 13 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index dbc210e0ba9..d1c6ead20d9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,30 @@
# Maintainer: Linux Gamers <linuxgamers@protonmail.com>
pkgname=jslisten-git
+pkgver=r48.3c84610
pkgrel=1
-pkgver=50ead3e
+epoch=1
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')
+arch=(x86_64 i686 pentium4 arm armv6h armv7h aarch64)
url="https://github.com/workinghard/jslisten"
-license=('GNU General Public License v3.0')
-makedepends=('git' 'make')
+license=(GPL3)
+depends=(udev)
+makedepends=(git)
+provides=(jslisten)
+conflicts=(jslisten)
sha256sums=('SKIP')
source=("git+${url}")
pkgver() {
- cd $srcdir/jslisten
- git log -1 --oneline | grep -Po "^\w+"
+ cd "${srcdir}/jslisten"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
- cd "${srcdir}/jslisten" && make
+ cd "${srcdir}/jslisten"
+ make
}
package() {
- mkdir -p $pkgdir/usr/bin
- cp "${srcdir}/jslisten/bin/jslisten" $pkgdir/usr/bin
+ install -Dm755 "${srcdir}/jslisten/bin/jslisten" ${pkgdir}/usr/bin/jslisten
}