1 # Maintainer: Mike WB2FKO <mph at sportscliche dot com>
5 pkgdesc="Weak Signal Communication by K1JT (debian beta release)"
7 url="http://physics.princeton.edu/pulsar/K1JT/wsjt.html"
9 depends=('python2' 'python-imaging' 'python2-numpy' 'libsamplerate' 'portaudio' 'fftw')
10 makedepends=('deb2targz')
11 source=(http://physics.princeton.edu/pulsar/K1JT/wsjt_${pkgver}_i386.deb
15 md5sums=('6f821862dae4ead448b1edecd7e51fd7'
16 'b44e27a7e35cb78b484deae4d8e41c1b'
17 'dd21318d4aa3423f1fbefc53061cc40d'
18 '0c720b63d03be34ad81c1afc1e2c024a')
21 #Make a tarball from the debian source file
22 deb2targz ${srcdir}/wsjt_${pkgver}_i386.deb
24 tar xvzf ${srcdir}/wsjt_${pkgver}_i386.tar.gz
25 # The program will not run if the files are separated so place the entire package in /opt
26 rm -rf $pkgdir/opt/$pkgname
27 mkdir -p $pkgdir/opt/$pkgname
28 mv WSJT9 "$pkgdir/opt/$pkgname"
30 find "$pkgdir/opt/$pkgname/" -type f | xargs chmod 644
31 find "$pkgdir/opt/$pkgname/" -type d | xargs chmod 755
33 # Install a menu item with icon
35 mkdir -p $pkgdir/usr/share/pixmaps
36 mkdir -p $pkgdir/usr/share/applications
37 install -Dm644 $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
38 install -Dm644 $pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
40 # Install a simple launcher script
41 install -Dm755 startwsjt $pkgdir/opt/$pkgname/WSJT9/startwsjt
43 echo -e "\n WSJT9 will be installed in the /opt directory of root \n"
46 # vim:set ts=2 sw=2 et: