updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / stickshift-git / PKGBUILD
blob579518b8a617f122cbd65863af7a59d937c89bbc
1 # Creator: Cristóvão Duarte Sousa <crisjss@gmail.com>
2 pkgname=stickshift-git
3 pkgver=20120106
4 pkgrel=1
5 pkgdesc="Create 'shift' buttons on your Linux Joystick"
6 arch=('i686' 'x86_64')
7 url="https://github.com/petechap/stickshift"
8 license=('GPL2')
9 groups=()
10 depends=('boost-libs' 'libxml2' 'fuse')
11 makedepends=('git' 'boost')
12 provides=()
13 conflicts=()
14 replaces=()
15 backup=()
16 options=()
17 install=
18 source=()
19 noextract=()
20 md5sums=() #generate with 'makepkg -g'
22 _gitroot=https://github.com/petechap/stickshift.git
23 _gitname=stickshift
25 build() {
26   cd "$srcdir"
27   msg "Connecting to GIT server...."
29   if [[ -d "$_gitname" ]]; then
30     cd "$_gitname" && git pull origin
31     msg "The local files are updated."
32   else
33     git clone "$_gitroot" "$_gitname"
34   fi
36   msg "GIT checkout done or server timeout"
37   msg "Starting build..."
39    cd "$srcdir/$_gitname"
40    make
43 package() {   
44   install -d -m755 ${pkgdir}/usr/bin
45   install -D -m755 ${srcdir}/${_gitname}/stickshift ${pkgdir}/usr/bin/
46   
47   
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
51   
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: