updated on Fri Jan 13 04:01:25 UTC 2012
[aur-mirror.git] / d-rats / PKGBUILD
blobd9aef2a22621981480d7e861993634bd47cc1e69
1 # Maintainer: WB2FKO <mph at sportscliche dot com>
2 pkgname=d-rats
3 pkgver=0.3.2
4 pkgrel=1
5 pkgdesc="D-STAR Communication Tool"
6 arch=('any')
7 url="http://www.d-rats.com/"
8 license=('unknown')
9 depends=('python2' 'libxml2' 'python-pyserial' 'python-simplejson' 'python2-feedparser' 'python-lxml' 'pygtk')
10 options=(!emptydirs)
11 source=(http://d-rats.danplanet.com/download/v0.3.x/$pkgname-$pkgver.tar.gz
12         $pkgname.png)
13 md5sums=('a28a7a4377bb5b39df2b688a474dcd18'
14          '764dd1be35d49c987f6da23ac170371d')
16 package() {
17 # Install a menu icon
18   cd "$srcdir"
19   mkdir -p $pkgdir/usr/share/pixmaps
20   install -Dm644  $pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
21   cd "$srcdir/$pkgname-$pkgver/share"
22   sed -i "s:/usr/share/d-rats/drats2.ico:${pkgname}.png:" ${pkgname}.desktop
23   sed -i "s:n=d-rats:n=${pkgname}.png:" ${pkgname}_mapdownloader.desktop
24   sed -i "s:n=d-rats:n=${pkgname}.png:" ${pkgname}_repeater.desktop
25   cd "$srcdir/$pkgname-$pkgver"
26   python2 setup.py install --root=$pkgdir/ --optimize=1
29 # vim:set ts=2 sw=2 et: