1 # Creator: Cristóvão Duarte Sousa <crisjss@gmail.com>
5 pkgdesc="Create 'shift' buttons on your Linux Joystick"
7 url="https://github.com/petechap/stickshift"
10 depends=('boost-libs' 'libxml2' 'fuse')
11 makedepends=('git' 'boost')
20 md5sums=() #generate with 'makepkg -g'
22 _gitroot=https://github.com/petechap/stickshift.git
27 msg "Connecting to GIT server...."
29 if [[ -d "$_gitname" ]]; then
30 cd "$_gitname" && git pull origin
31 msg "The local files are updated."
33 git clone "$_gitroot" "$_gitname"
36 msg "GIT checkout done or server timeout"
37 msg "Starting build..."
39 cd "$srcdir/$_gitname"
44 install -d -m755 ${pkgdir}/usr/bin
45 install -D -m755 ${srcdir}/${_gitname}/stickshift ${pkgdir}/usr/bin/
48 install -d -m755 ${pkgdir}/usr/share/doc/${_gitname}/examples
49 install -D -m644 ${srcdir}/${_gitname}/README.txt ${pkgdir}/usr/share/doc/${_gitname}
50 install -D -m644 ${srcdir}/${_gitname}/x52pro.xml ${pkgdir}/usr/share/doc/${_gitname}/examples
52 install -d -m755 ${pkgdir}/etc/udev/rules.d
53 install -m644 ${srcdir}/${_gitname}/10-stickshift-xplane.rules ${pkgdir}/etc/udev/rules.d/10-stickshift.rules
56 # vim:set ts=2 sw=2 et: