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

adeskbar 4.3

By: myra_nelson on Aug 10th, 2011  |  syntax: Bash  |  size: 1.28 KB  |  views: 132  |  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. # Maintainer : SpepS <dreamspepser at yahoo dot it>
  2. # Contributor: Dogukan Korkmazturk <d.korkmazturk@gmail.com>
  3. # Contributor: Ronan Rabouin <darkbaboon@gmail.com>
  4.  
  5. pkgname=adeskbar
  6. pkgver=0.4.3
  7. pkgrel=1
  8. pkgdesc="A Quick Application Launcher"
  9. arch=('any')
  10. url="http://www.ad-comp.be/index.php?category/ADesk-Bar"
  11. license=('GPL3')
  12. depends=('python' 'pyxdg' 'pycairo' 'gnome-menus' 'pygtk')
  13. optdepends=('python-xlib: Systray plugin'
  14.             'python-wnck: Intellihide mode and tasklist plugin')
  15. conflicts=("$pkgname-bzr" "$pkgname-archbang")
  16. install="$pkgname.install"
  17. #source=("http://www.ad-comp.be/public/projets/ADeskBar/adeskbar-0.4.2.tar.bz2")
  18. source=("http://download.tuxfamily.org/adeskbar/sources/$pkgname-$pkgver.tar.bz2")
  19. md5sums=('255cd98ada4057e333a7c9069245eb88')
  20.  
  21. build() {
  22.  
  23.   cd "$srcdir/$pkgname-$pkgver"
  24.  
  25.   # Python2 fix
  26.   sed -i "s_bin/python_&2_" `grep -rl bin/python .`
  27.  
  28.   # .desktop fix
  29.   sed -i '$d' $pkgname.desktop
  30.  
  31.   # Install
  32.   install -d "$pkgdir"/usr/{bin,share/{"$pkgname",pixmaps,applications}}
  33.   cp -a src/* "$pkgdir/usr/share/$pkgname"
  34.   install -m644 "src/images/$pkgname.png" "$pkgdir/usr/share/pixmaps/"
  35.   install -m644 "$pkgname.desktop" "$pkgdir/usr/share/applications/"
  36.  
  37.   ln -s /usr/share/$pkgname/main.py $pkgdir/usr/bin/adeskbar
  38. }