This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 11th, 2010  |  syntax: None  |  size: 1.49 KB  |  views: 62  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Thomas Dziedzic < gostrc at gmail >
  2. # Contributor: Antti "Tera" Oja <antti.bofh@gmail.com>
  3.  
  4. pkgname=libdrm-git
  5. pkgver=20101017
  6. pkgrel=1
  7. pkgdesc='Userspace interface to kernel DRM services.'
  8. arch=('i686' 'x86_64')
  9. url='http://dri.freedesktop.org/'
  10. license=('custom')
  11. depends=('glibc')
  12. makedepends=('git')
  13. provides=('libdrm=2.4.23' 'libdrm-git')
  14. conflicts=('libdrm')
  15. options=('!libtool')
  16. source=('no-pthread-stubs.patch'
  17.         'COPYING')
  18. md5sums=('9b5ec3bbebe86921e2057694c42f65b8'
  19.          'ba65e71c481b94ef0fb6c23c7f21ffa1')
  20.  
  21. _gitroot='git://git.freedesktop.org/git/mesa/drm'
  22. _gitname='drm'
  23.  
  24. build() {
  25.   msg 'Connecting to git.freedesktop.org GIT server....'
  26.  
  27.   if [ -d $_gitname ] ; then
  28.     cd $_gitname
  29.     git pull origin
  30.     msg 'The local files are updated.'
  31.   else
  32.     git clone $_gitroot
  33.   fi
  34.  
  35.   msg 'GIT checkout done or server timeout'
  36.  
  37.   msg 'Creating build directory'
  38.   cd ${srcdir}
  39.   rm -rf $_gitname-build
  40.   cp -R $_gitname $_gitname-build
  41.  
  42.   msg 'Starting make...'
  43.   cd $_gitname-build
  44.  
  45.   msg 'Applying patches ...'
  46.   patch -Np1 -i "${srcdir}/no-pthread-stubs.patch"
  47.  
  48.   sh autogen.sh \
  49.     --prefix=/usr \
  50.     --enable-nouveau-experimental-api \
  51.     --enable-radeon \
  52.     --enable-udev
  53.  
  54.   make
  55. }
  56.  
  57. package() {
  58.   cd $_gitname-build
  59.  
  60.   make DESTDIR="${pkgdir}" install
  61.  
  62.   # Install license file
  63.   install -d "${pkgdir}/usr/share/licenses/${pkgname}"
  64.   install -m644 "${srcdir}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/"
  65. }
clone this paste RAW Paste Data