updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / wspr / PKGBUILD
blobc4d23cf51720ac1eefc0badea13b9cfec9a5ab0a
1 # Maintainer: WB2FKO <mph at sportscliche dot com>
2 pkgname=wspr
3 pkgver=2.00.r1714
4 pkgrel=2
5 pkgdesc="Weak Signal Propagation Reporter"
6 arch=("i686")
7 url="http://www.physics.princeton.edu/pulsar/K1JT/wspr.html"
8 license=("GPL")
9 depends=('python2' 'python-imaging' 'python2-numpy' 'libsamplerate' 'portaudio' 'fftw' 'g95')
10 source=(http://www.physics.princeton.edu/pulsar/K1JT/$pkgname-$pkgver.tgz
11         $pkgname.png
12         $pkgname.desktop)
13 md5sums=('89bb985d99e777de054a9c1642a941c5'
14          'dd21318d4aa3423f1fbefc53061cc40d'
15          'b5eb504a0fc6b91a98c86f4074676e30')
17 build() {
18 # Set the build environment to python2
19  export PYTHON="/usr/bin/python2"
20  export F2PY="/usr/bin/python2 f2py.py"
21  unset LDFLAGS
22   
23 cd "$srcdir/$pkgname-$pkgver"
25 # Make problems can sometimes be fixed by replacing g95 with gfortran 
26 ./configure --prefix=/usr --enable-g95
27 make
30 package() {
31   cd "$srcdir/$pkgname-$pkgver"
32   rm -rf build/
33   python2 setup.py install --root=$pkgdir/ 
34   sed -i 's:python:python2:g' wspr
35   install -Dm755 wspr $pkgdir/usr/bin/wspr
37 # Install a menu item with icon
38   cd $srcdir
39   mkdir -p $pkgdir/usr/share/pixmaps
40   mkdir -p $pkgdir/usr/share/applications
41   mkdir -p $pkgdir/usr/share/doc/${pkgname}
42   install -Dm644 $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
43   install -Dm644  $pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
44 #  install -Dm644 LICENSE.TXT $pkgdir/usr/share/doc/${pkgname}/LICENSE.TXT
45   cp -ra $srcdir/$pkgname-$pkgver/*.TXT $pkgdir/usr/share/doc/${pkgname}/