summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabioLolix2021-07-18 19:44:14 +0200
committerFabioLolix2021-07-18 19:44:14 +0200
commitf780e67ac11c2e7dade3fffa4ce956265b0f707e (patch)
tree505d9bb5c807b3f8d0ed53acfcd09d4b48732a49
parent997668c5073308a9fe9902020f585ddc19ae83e5 (diff)
downloadaur-jslisten-git.tar.gz
revision
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD24
-rwxr-xr-xgensrc.sh2
3 files changed, 24 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c8027786ff8..ced0701e55e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,22 @@
pkgbase = jslisten-git
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.
- pkgver = 50ead3e
+ pkgver = r48.3c84610
pkgrel = 1
+ epoch = 1
url = https://github.com/workinghard/jslisten
- arch = any
- license = GNU General Public License v3.0
+ arch = x86_64
+ arch = i686
+ arch = pentium4
+ arch = arm
+ arch = armv6h
+ arch = armv7h
+ arch = aarch64
+ license = GPL3
makedepends = git
- makedepends = make
+ depends = udev
provides = jslisten
conflicts = jslisten
source = git+https://github.com/workinghard/jslisten
sha256sums = SKIP
pkgname = jslisten-git
-
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
}
diff --git a/gensrc.sh b/gensrc.sh
deleted file mode 100755
index 44279c59076..00000000000
--- a/gensrc.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-makepkg --printsrcinfo > .SRCINFO
-git add -f PKGBUILD .SRCINFO