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 Feb 8th, 2011  |  syntax: None  |  size: 1.21 KB  |  views: 145  |  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. pkgname=xcb-ewmh
  2. pkgver=20110208
  3. pkgrel=1
  4. pkgdesc="xcb-util branch with the ewmh specification extension (git)"
  5. arch=('i686' 'x86_64')
  6. url="git://people.freedesktop.org/~arnau"
  7. license=('custom')
  8. depends=('libxcb>=1.4')
  9. makedepends=('gperf' 'git')
  10. conflicts=(xcb-util)
  11. provides=(xcb-util)
  12. replaces=(xcb-util)
  13. source=(LICENSE)
  14. md5sums=('2672c2e72dedb40f773e989dd622f298')
  15.  
  16. _gitroot="git://people.freedesktop.org/~arnau/xcb-util.git"
  17. _gitname="xcb-util"
  18.  
  19. build() {
  20.   cd "$srcdir"
  21.   msg "Connecting to GIT server...."
  22.  
  23.   if [ -d $_gitname ] ; then
  24.     cd $_gitname && git pull origin
  25.     msg "The local files are updated."
  26.   else
  27.     git clone $_gitroot $_gitname
  28.   fi
  29.  
  30.   msg "GIT checkout done or server timeout"
  31.   msg "Starting build..."
  32.  
  33.   rm -rf "$srcdir/$_gitname-build"
  34.   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  35.   cd "$srcdir/$_gitname-build"
  36.  
  37.   ./autogen.sh
  38.   ./configure --prefix=/usr --disable-static
  39.   make || return 1
  40.   make DESTDIR="$pkgdir/" install
  41.   install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
  42.   # Is this the right way to make sure libtool files don't get here? Tell me if it's not.
  43.   rm ${pkgdir}/usr/lib/*.la
  44. }
clone this paste RAW Paste Data