diff options
author | Benjamin Hodgetts | 2018-04-23 09:19:50 +0100 |
---|---|---|
committer | Benjamin Hodgetts | 2018-04-23 09:19:50 +0100 |
commit | 7f53cd72a22edae0d39056b8fe170bb02f36b163 (patch) | |
tree | cebb719fb1802b7487262877c9fb19934b613934 /PKGBUILD | |
download | aur-xarcade2jstick-git.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4361c844b5e8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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/" +} |