blob: f4e9a7a14a35c7f5b65e669990a30840c355f58f (
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
29
30
31
32
|
# Maintainer: Vladimir Panteleev <arch-pkg at thecybershadow.net>
_pkgname=joydevmap
pkgname=$_pkgname-git
pkgver=r5.0fa6015
pkgrel=1
pkgdesc="a small userspace tool to change the axis and button mappings of joysticks and gamepads in Linux"
arch=('i686' 'x86_64')
url="https://www.sthu.org/code/joydevmap.html"
license=('LGPL')
makedepends=('cmake' 'git')
depends=('glibc')
source=("git+https://git.sthu.org/repos/joydevmap.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
[[ -d "$srcdir/build" ]] && rm -r "$srcdir/build"
mkdir "$srcdir/build"
cd "$srcdir/build"
cmake -DCMAKE_INSTALL_PREFIX=/usr "../$_pkgname"
make
}
package() {
cd "$srcdir/build"
make DESTDIR="$pkgdir/" install
}
|