1 # Maintainer: WB2FKO <mph at sportscliche dot com>
5 pkgdesc="Weak Signal Communication by K1JT"
7 url="http://www.physics.princeton.edu/pulsar/K1JT/"
9 depends=('python2' 'python-imaging' 'python2-numpy' 'libsamplerate' 'portaudio' 'fftw' 'g95')
10 source=(http://prdownload.berlios.de/wsjt/wsjt-$pkgver.tgz
14 md5sums=('219d08442ceab62ba3f21c30705f2650'
15 '3c28a97d157f5122607fc7915f9a0c06'
16 'dd21318d4aa3423f1fbefc53061cc40d'
17 'b07c1d24a4c042bbac8c9f2183c73747')
20 # Set the build environment to python2
21 export PYTHON="/usr/bin/python2"
22 export F2PY="/usr/bin/python2 f2py.py"
25 # This patch grabs f2py2e from python2-numpy
26 install -Dm644 patch $srcdir/wsjt-$pkgver/f2py.py
28 cd "$srcdir/wsjt-$pkgver"
30 # Make problems can sometimes be fixed by replacing g95 with gfortran
31 ./configure --prefix=/usr --enable-g95
36 # Place the entire package in /opt
37 rm -rf $pkgdir/opt/$pkgname
38 mkdir -p $pkgdir/opt/$pkgname
39 mv $srcdir/wsjt-$pkgver $pkgdir/opt/$pkgname
40 chown -R $USER: $pkgdir/opt/$pkgname
41 find "$pkgdir/opt/$pkgname/" -type f | xargs chmod 644
42 find "$pkgdir/opt/$pkgname/" -type d | xargs chmod 755
44 # Install a menu item with icon
46 mkdir -p $pkgdir/usr/share/pixmaps
47 mkdir -p $pkgdir/usr/share/applications
48 install -Dm644 $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
49 install -Dm644 $pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
51 echo -e "\n WSJT will be installed in the /opt directory of root \n"