updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / wsjt5 / PKGBUILD
blob8b6e7602d9c336db0a5a153739bc95279ce199f9
1 # Maintainer: WB2FKO <mph at sportscliche dot com>
2 pkgname=wsjt5
3 pkgver=5.9.7.r386
4 pkgrel=1
5 pkgdesc="Weak Signal Communication by K1JT"
6 arch=("i686")
7 url="http://www.physics.princeton.edu/pulsar/K1JT/"
8 license=("GPL")
9 depends=('python2' 'python-imaging' 'python2-numpy' 'libsamplerate' 'portaudio' 'fftw' 'g95')
10 source=(http://prdownload.berlios.de/wsjt/wsjt-$pkgver.tgz
11         patch
12         $pkgname.png
13         $pkgname.desktop)
14 md5sums=('219d08442ceab62ba3f21c30705f2650'
15          '3c28a97d157f5122607fc7915f9a0c06'
16          'dd21318d4aa3423f1fbefc53061cc40d'
17          'b07c1d24a4c042bbac8c9f2183c73747')
19 build() {
20 # Set the build environment to python2
21  export PYTHON="/usr/bin/python2"
22  export F2PY="/usr/bin/python2 f2py.py"
23  unset LDFLAGS
24  unset CFLAGS
25 # This patch grabs f2py2e from python2-numpy
26   install -Dm644 patch $srcdir/wsjt-$pkgver/f2py.py
27   
28 cd "$srcdir/wsjt-$pkgver"
30 # Make problems can sometimes be fixed by replacing g95 with gfortran 
31 ./configure --prefix=/usr --enable-g95  
32 make
35 package(){
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
45   cd $srcdir
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"