summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dbc210e0ba91ca9a4f3170f98acf9a1963f20b74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 
}