summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4361c844b5e8cd82ef2c61a14bd412dc77d45b1b (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: Benjamin Hodgetts <ben@xnode.org>

_pkgname=Xarcade2Jstick
pkgname=xarcade2jstick-git
pkgver=r70.0cb523c
pkgrel=1
pkgdesc='Maps XArcade sticks to joysticks.'
arch=('i686' 'x86_64')
url="https://github.com/petrockblog/${_pkgname}"
license=('custom:MPL2')
provides=('xarcade2jstick')
conflicts=('xarcade2jstick')
makedepends=('git' 'cmake')
source=("git+https://github.com/petrockblog/${_pkgname}.git")
sha1sums=('SKIP')

pkgver() {
	cd ${_pkgname}
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd ${_pkgname}
	make DESTDIR="${pkgdir}"
}

package() {
	cd ${_pkgname}
	make DESTDIR="${pkgdir}" install
	make DESTDIR="${pkgdir}" installservice
	mv "${pkgdir}/lib" "${pkgdir}/usr/"
}