Don't like ads? PRO users don't see any ads ;-)
Guest

[ADESKBAR] By SpepS

By: a guest on Oct 22nd, 2010  |  syntax: None  |  size: 1.19 KB  |  hits: 249  |  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: Dogukan Korkmazturk <d.korkmazturk@gmail.com>
  2. # Contributor: Ronan Rabouin <darkbaboon@gmail.com>
  3. # Contributor: SpepS <dreamspepser at yahoo dot it>
  4.  
  5. pkgname=adeskbar
  6. pkgver=0.4.2
  7. pkgrel=3
  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. md5sums=('b64d714401d0d9c9321c28fc8ceae31d')
  19.  
  20. build() {
  21.  
  22.   cd "$srcdir/$pkgname"
  23.  
  24.   # Python2 fix
  25.   sed -i "s_bin/python_&2_" `grep -rl bin/python .`
  26.  
  27.   # .desktop fix
  28.   sed -i '$d' $pkgname.desktop
  29.  
  30.   # Install
  31.   install -d "$pkgdir"/usr/{bin,share/{"$pkgname",pixmaps,applications}}
  32.   cp -a src/* "$pkgdir/usr/share/$pkgname"
  33.   install -m644 "src/images/$pkgname.png" "$pkgdir/usr/share/pixmaps/"
  34.   install -m644 "$pkgname.desktop" "$pkgdir/usr/share/applications/"
  35.  
  36.   ln -s /usr/share/$pkgname/main.py $pkgdir/usr/bin/adeskbar
  37. }