Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

PKGBUILD

By: GUiHKX on May 15th, 2012  |  syntax: Bash  |  size: 1.92 KB  |  views: 76  |  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. # Modified by: GUiHKX
  4. #
  5. # argb-revert.patch => http://pastebin.com/CrAJvPR7
  6. #
  7. # The patch reverts this commit: http://git.naquadah.org/?p=awesome.git;a=commit;h=f7aa4b59696e2d2e3f93c3f71fdbf1cf98e8b212
  8. # After that commit, there was a slowness to open/maximize/move windows (at least on my computer)
  9. # I apologize for my english and also if I did not follow the "Arch Packaging Standards"
  10.  
  11. pkgname=awesome-git
  12. pkgver=20120512
  13. pkgrel=1
  14. pkgdesc="A highly configurable, next generation framework window manager for X"
  15. arch=('i686' 'x86_64')
  16. url="http://awesome.naquadah.org/"
  17. license=('GPL2')
  18. depends=('startup-notification' 'libxdg-basedir' 'libev' 'dbus' 'lua'
  19.   'cairo>=1.12.2' 'pango' 'lua-oocairo' 'lua-oopango' 'imlib2'
  20.   'xcb-util'{,-image,-keysyms,-wm}'>=0.3.8')
  21. makedepends=('git' 'cmake' 'asciidoc' 'xmlto' 'luadoc' 'imagemagick' 'doxygen')
  22. optdepends=('rlwrap: readline support for awesome-client')
  23. provides=('awesome')
  24. conflicts=('awesome')
  25. options=('docs')
  26. source=(awesome.desktop argb-revert.patch)
  27. md5sums=('2763cab6a20d4b0f2676329d57ed3a45' 'f80c97914c06849a264ed96d5e71a894')
  28.  
  29. _gitroot="git://git.naquadah.org/awesome.git"
  30. _gitname="awesome"
  31.  
  32. build() {
  33.   cd ${srcdir}
  34.  
  35.   msg "Connecting to GIT server..."
  36.   if [[ -d ${_gitname} ]]; then
  37.     (cd ${_gitname} && git pull origin)
  38.   else
  39.     git clone ${_gitroot} ${_gitname}
  40.   fi
  41.   msg "GIT checkout done or server timeout"
  42.   msg "Starting make..."
  43.  
  44.   rm -rf ${_gitname}-build
  45.   git clone ${_gitname} ${_gitname}-build
  46.  
  47.   cd ${srcdir}/${_gitname}-build
  48.   patch -R "awesome.c" < "${srcdir}/argb-revert.patch"
  49.  
  50.   cmake -DCMAKE_INSTALL_PREFIX=/usr -DSYSCONFDIR=/etc
  51.   make
  52. }
  53.  
  54. package() {
  55.   cd ${srcdir}/${_gitname}-build
  56.  
  57.   make DESTDIR=${pkgdir} install
  58.  
  59.   install -D -m644 ${srcdir}/awesome.desktop \
  60.     ${pkgdir}/usr/share/xsessions/awesome.desktop
  61. }
clone this paste RAW Paste Data