Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.18 KB | None | 0 0
  1. # Maintainer:  Matthew Monaco <net 0x01b dgbaley27>
  2.  
  3. _gitroot="git://github.com/dvdhrm/xf86-input-xwiimote.git"
  4. _gitname="xf86-input-xwiimote"
  5.  
  6. pkgname=xf86-input-wiimote-git
  7. pkgver=20130104
  8. pkgrel=2
  9. pkgdesc="Xorg input driver for the Nintendo Wii Remote"
  10. url="https://github.com/dvdhrm/xf86-input-xwiimote"
  11. license=('BSD')
  12. groups=('xorg-drivers' 'xorg')
  13. arch=('i686' 'x86_64')
  14. backup=('etc/X11/xorg.conf.d/60-xorg-xwiimote.conf')
  15. depends=('xwiimote-git' 'udev')
  16. makedepends=('xorg-server-devel' 'git')
  17. conflicts=("${pkgname/-git/}")
  18. provides=("${pkgname/-git/}")
  19. options=('!libtool')
  20.  
  21. build() {
  22.  
  23.     cd "$srcdir"
  24.  
  25.     if [[ -d "$_gitname" ]]; then
  26.         msg2 "Cleaning and updating git repo"
  27.  
  28.         cd "$_gitname"
  29.         git clean -dfx
  30.         git pull
  31.  
  32.     else
  33.         msg2 "Cloning $_gitroot"
  34.  
  35.         git clone "$_gitroot"
  36.         cd "$_gitname"
  37.     fi
  38.  
  39.     sed -e "s|^AM_CONFIG_HEADER|AC_CONFIG_HEADERS|" -i configure.ac
  40.     ./autogen.sh --prefix=/usr
  41.     make
  42. }
  43.  
  44. package() {
  45.  
  46.     cd "$srcdir/$_gitname"
  47.  
  48.     make DESTDIR="$pkgdir" install
  49.     install -D 60-xorg-xwiimote.conf "$pkgdir/etc/X11/xorg.conf.d/60-xorg-xwiimote.conf"
  50.     install -D COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
  51. }
  52.  
  53. # vim: set noet :
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement