updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / adeskbar / PKGBUILD
blob8541c7dd7ab28c6a521380fbac77c7a880cca56b
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.5.1
7 pkgrel=1
8 pkgdesc="A quick and lightweight application launcher."
9 arch=('any')
10 url="http://adeskbar.tuxfamily.org/"
11 license=('GPL3')
12 depends=('pyxdg' 'gnome-menus2' 'pygtk')
13 optdepends=('python-xlib: systray plugin'
14             'python-wnck: intellihide mode and tasklist plugin'
15             'python-pyalsaaudio: volume plugin'
16             'python2-pyinotify: menu plugin'
17             'vte: terminal plugin')
18 conflicts=("$pkgname-bzr" "$pkgname-archbang")
19 install="$pkgname.install"
20 source=("http://download.tuxfamily.org/$pkgname/sources/$pkgname-$pkgver.tar.gz"
21         "$pkgname.sh")
22 md5sums=('99fba38f2e8675b369e784ba0ee20d1d'
23          '58cc954001b1c4ed33ed758337e05e78')
25 build() {
26   cd "$srcdir/$pkgname-${pkgver%.*}"
28   # .desktop fix
29   sed -i '$d' $pkgname.desktop
32 package() {
33   cd "$srcdir/$pkgname-${pkgver%.*}"
35   # Install
36   install -d "$pkgdir/usr/share/$pkgname"
37   cp -a src/* "$pkgdir/usr/share/$pkgname"
39   # icon
40   install -Dm644 "src/images/$pkgname.png" \
41     "$pkgdir/usr/share/pixmaps/$pkgname.png"
43   # desktop file
44   install -Dm644 "$pkgname.desktop" \
45     "$pkgdir/usr/share/applications/$pkgname.desktop"
47   # launcher
48   install -Dm755 ../adeskbar.sh "$pkgdir/usr/bin/adeskbar"
50   # python2 fix
51   sed -i "s|env python$|&2|" `grep -rl "env python" "$pkgdir"`