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

machoo02

By: a guest on Oct 20th, 2010  |  syntax: Bash  |  size: 1.14 KB  |  views: 38  |  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=timer-applet
  2. pkgver=2.2beta1
  3. pkgrel=1
  4. pkgdesc="A countdown timer applet for the GNOME panel"
  5. arch=(i686 x86_64)
  6. url="http://launchpad.net/timer-applet"
  7. license=('GPL2')
  8. depends=('gnome-python-desktop>=2.18' 'python-notify>=0.1.1' 'dbus-python>=0.80' 'gstreamer0.10-python' 'intltool>=0.35.0')
  9. source=(http://launchpad.net/timer-applet/2.2/2.2b1/+download/timer-applet-${pkgver}.tar.gz)
  10. md5sums=('30eb9df45e7578a9de0ac451c5f25a92')
  11. build() {
  12. cd $startdir/src/$pkgname
  13.  
  14. ./configure --prefix=/usr PYTHON=python2 sysconfdir=/etc || return 1
  15. make || return 1
  16. make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 PYTHON=python2 DESTDIR=${startdir}/pkg install || return 1
  17.  
  18. mkdir -p ${startdir}/pkg/usr/share/gconf/schemas
  19. gconf-merge-schema ${startdir}/pkg/usr/share/gconf/schemas/${pkgname}.schemas ${startdir}/pkg/etc/gconf/schemas/*.schemas || return 1
  20. rm -rf ${startdir}/pkg/etc
  21.  
  22. sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
  23.        -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
  24.   $(find $pkgdir -name '*.py')
  25.  
  26. sed -i "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" $pkgdir/usr/lib/timer-applet/timer-applet
  27. }