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

PKGBUILD

By: a guest on Sep 10th, 2010  |  syntax: Bash  |  size: 1.37 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. # Contributor: noonov <noonov@gmail.com>
  2. # Contributor: wtchappell <wtchappell@gmail.com>
  3.  
  4. pkgname=awesome-git
  5. pkgver=20100910
  6. pkgrel=1
  7. pkgdesc="A highly configurable, next generation framework window manager for X"
  8. arch=('i686' 'x86_64')
  9. url="http://awesome.naquadah.org/"
  10. license=('GPL2')
  11. depends=('cairo-xcb' 'lua-oocairo-git' 'lua-oopango-git' 'startup-notification' 'libev' 'lua' 'dbus' 'imlib2' 'libxdg-basedir' 'pango')
  12. makedepends=('git' 'cmake' 'gperf' 'asciidoc' 'xmlto' 'luadoc' 'imagemagick' 'pkgconfig')
  13. provides=('awesome')
  14. conflicts=('awesome')
  15. options=('docs')
  16. source=(awesome.desktop)
  17.  
  18. _gitroot="git://git.naquadah.org/awesome.git"
  19. _gitname="awesome"
  20.  
  21. build() {
  22.   cd ${srcdir}
  23.  
  24.   msg "Connecting to GIT server..."
  25.   if [[ -d ${_gitname} ]]; then
  26.     (cd ${_gitname} && git pull origin)
  27.   else
  28.     git clone ${_gitroot} ${_gitname}
  29.   fi
  30.   msg "GIT checkout done or server timeout"
  31.   msg "Starting make..."
  32.  
  33.   rm -rf ${_gitname}-build
  34.   git clone ${_gitname} ${_gitname}-build
  35.  
  36.   cd ${srcdir}/${_gitname}-build
  37.  
  38.   cmake -DCMAKE_INSTALL_PREFIX=/usr -DSYSCONFDIR=/etc || return 1
  39.   make || return 1
  40. }
  41.  
  42. package() {
  43.   cd ${srcdir}/${_gitname}-build
  44.  
  45.   make DESTDIR=${pkgdir} install || return 1
  46.  
  47.   install -D -m644 ${srcdir}/awesome.desktop \
  48.     ${pkgdir}/usr/share/xsessions/awesome.desktop
  49. }
  50.  
  51. md5sums=('be32bd22c6279603b7f81a3184109c80')
clone this paste RAW Paste Data