1 # Maintainer: WB2FKO <mph at sportscliche dot com>
5 pkgdesc="Weak Signal Propagation Reporter"
7 url="http://www.physics.princeton.edu/pulsar/K1JT/wspr.html"
9 depends=('python2' 'python-imaging' 'python2-numpy' 'libsamplerate' 'portaudio' 'fftw' 'g95')
10 source=(http://www.physics.princeton.edu/pulsar/K1JT/$pkgname-$pkgver.tgz
13 md5sums=('89bb985d99e777de054a9c1642a941c5'
14 'dd21318d4aa3423f1fbefc53061cc40d'
15 'b5eb504a0fc6b91a98c86f4074676e30')
18 # Set the build environment to python2
19 export PYTHON="/usr/bin/python2"
20 export F2PY="/usr/bin/python2 f2py.py"
23 cd "$srcdir/$pkgname-$pkgver"
25 # Make problems can sometimes be fixed by replacing g95 with gfortran
26 ./configure --prefix=/usr --enable-g95
31 cd "$srcdir/$pkgname-$pkgver"
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
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}/