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

Untitled

By: a guest on Oct 22nd, 2010  |  syntax: None  |  size: 1.54 KB  |  views: 60  |  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=avant-window-navigator-bzr
  2. pkgver=760
  3. pkgrel=1
  4. pkgdesc="Development branch of Avant Window Navigator"
  5. arch=('i686' 'x86_64')
  6. url="https://launchpad.net/awn"
  7. license=('GPL')
  8. depends=('libwnck' 'gconf' 'xproto' 'dbus-glib' 'libglade' 'libxdamage' \
  9.          'libxcomposite' 'libxrender' 'python2' 'vala' 'hicolor-icon-theme' \
  10.          'pyxdg' 'python-feedparser' 'xdg-utils' 'libdesktop-agnostic' \
  11.          'libgtop' 'bzr' 'dbus-python')
  12. makedepends=('intltool' 'gnome-doc-utils' 'bzr' 'gtk-doc')
  13. provides=('avant-window-navigator=0.4.1')
  14. conflicts=('avant-window-navigator')
  15. options=('!libtool')
  16. install=avant-window-navigator.install
  17.  
  18. _bzrmod=awn
  19. _bzrtrunk=lp:${_bzrmod}
  20.  
  21. build() {
  22.    cd ${srcdir}
  23.  
  24.   msg "Connecting to the server...."
  25.  
  26.   if [ ! -d ./${_bzrmod} ]; then
  27.     bzr co ${_bzrtrunk} ${_bzrmod}
  28.   else
  29.     bzr up ${_bzrmod}
  30.   fi
  31.  
  32.   msg "BZR checkout done or server timeout"
  33.   msg "Starting make..."
  34.  
  35.   cd ${srcdir}/awn
  36.  
  37.   PYTHON=/usr/bin/python2 ./autogen.sh --prefix=/usr --sysconfdir=/usr/share
  38.  
  39.   sed -i 's|${prefix}/etc|${prefix}/share|' Makefile
  40.  
  41.   str='\(.*"theme_tooltip_outline_color".*\)'
  42.   sed -i "s|$str|#\1|" awn-settings/awnSettings.py
  43.  
  44.   # python2 fix
  45.   sed -i 's_with ("python"_with ("python2"_' applet-activation/main.c
  46.   for file in $(find . -name '*.py' -print); do
  47.       sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file
  48.       sed -i 's_#!/usr/bin/python_#!/usr/bin/python2_' $file
  49.   done
  50.  
  51.   make
  52. }
  53.  
  54. package() {
  55.   cd ${srcdir}/awn
  56.  
  57.   make DESTDIR=${pkgdir} install
  58. }