Advertisement
Marcel-

xf86-input-evdev-git PKGBUILD

Oct 9th, 2012
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.24 KB | None | 0 0
  1. # Maintainer: Marcel Korpel <marcel[dot]korpel[at]gmail>
  2.  
  3. pkgname=xf86-input-evdev-git
  4. pkgver=20121008
  5. pkgrel=1
  6. pkgdesc='X.org evdev input driver with keycode remapping'
  7. url='http://www.thenautilus.net/cgit/xf86-input-evdev/'
  8. arch=('i686' 'x86_64')
  9. license=('custom')
  10. depends=('glibc')
  11. makedepends=('git' 'pkgconfig' 'xorg-server-devel' 'xorg-server>=1.7.0' 'mtdev')
  12. conflicts=('xf86-input-evdev')
  13. provides=('xf86-input-evdev=2.7.0')
  14. options=('!libtool' '!makeflags')
  15. groups=('xorg-input-drivers')
  16.  
  17. _gitroot='git://www.thenautilus.net/xf86-input-evdev'
  18. _gitname='xf86-input-evdev'
  19. _remap='code-remap-2.7.0'
  20.  
  21. build() {
  22.   msg 'Connecting to GIT server....'
  23.  
  24.   if [ -d ${_gitname} ] ; then
  25.     pushd ${_gitname}
  26.     git pull origin
  27.     popd
  28.     msg 'The local files are updated.'
  29.   else
  30.     git clone ${_gitroot}
  31.   fi
  32.  
  33.   msg 'GIT checkout done or server timeout'
  34.  
  35.   rm -rf build
  36.   cp -r ${_gitname} build
  37.   cd build
  38.  
  39.   git pull ${_gitroot} ${_remap}  # applies patches
  40.  
  41.   msg 'Starting make...'
  42.  
  43.   ./autogen.sh --prefix=/usr
  44.   make
  45. }
  46.  
  47. package() {
  48.   cd build
  49.   make DESTDIR=${pkgdir} install
  50.   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  51.   install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement