Want more features on Pastebin? Sign Up, it's FREE!
Guest

xpyb-git custom pkgbuild

By: a guest on Feb 16th, 2011  |  syntax: None  |  size: 0.94 KB  |  views: 94  |  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. # Contributer: Piotr Husiatyński <phusiatynski@gmail.com>
  2. # Last change: 15.09.2008 20:30
  3. pkgname=xpyb-git
  4. pkgver=20110216
  5. pkgrel=1
  6. pkgdesc="XCB-based Python bindings for the X Window System"
  7. url="http://xcb.freedesktop.org/"
  8. license=("X11")
  9. arch=("i686" "x86_64")
  10. depends=(python2 xcb-proto "libxcb>=1.7")
  11. makedepends=(git python2)
  12. provides=(xpyb=1.3)
  13. conflicts=(xpyb)
  14. source=()
  15. md5sums=()
  16. _gitroot="git://anongit.freedesktop.org/git/xcb"
  17. _gitname="xpyb"
  18. build()
  19. {
  20. if [ -d "${srcdir}/$_gitname" ]; then
  21. cd ${srcdir}/$_gitname
  22. git pull
  23. else
  24. cd ${srcdir}
  25. git clone "$_gitroot/$_gitname"
  26. fi
  27. cp -r "${srcdir}/$_gitname" "${srcdir}/$_gitname-build"
  28.  
  29. cd "${srcdir}/$_gitname-build"
  30.  
  31. #mkdir m4
  32. msg "Starting configure.."
  33. ./autogen.sh || return 1
  34. ./configure --prefix=/usr --disable-drm2 || return 1
  35. msg "Starting make.."
  36. make || return 1
  37. make DESTDIR=$pkgdir install || return 1
  38. cd ${srcdir}
  39. rm -rf ${srcdir}/$_gitname-build
  40. }
clone this paste RAW Paste Data