Package Details: wspr-svn 2460-5

Git Clone URL: https://aur.archlinux.org/wspr-svn.git (read-only)
Package Base: wspr-svn
Description: Weak Signal Propagation Reporter
Upstream URL: http://physics.princeton.edu/pulsar/K1JT/wspr.html
Keywords: ham-radio
Licenses: GPL
Submitter: None
Maintainer: CarstenF
Last Packager: CarstenF
Votes: 4
Popularity: 0.005938
First Submitted: 2011-03-14 23:50
Last Updated: 2016-03-15 13:24

Latest Comments

minorsecond commented on 2015-01-17 19:53

There is a patch to fix a seg fault issue:

https://people.freebsd.org/~db/padevsub.c.diff

minorsecond commented on 2015-01-16 16:50

Want to note that it seems that Python2-Pillow does not work with WSPR and I can only get it to work with Python2-Imaging. I think this may be something that has to be fixed by the dev himself but I'm not sure. Frustrating because upgrade wants to force mo replace the Python2-imaging with Python2-Pillow. You'll probably get the following error:

File "/usr/bin/wspr.py", line 38, in <module>
import Image, ImageTk, ImageDraw
ImportError: No module named Image

==================================

EDIT - In order to get it working with Python2-Pillow, allowing for an up-to-date system, I did the following.

Open up /usr/bin/wspr.py in your editor of choice and find line 38, "import Image, ImageTK, ImageDraw." Add "from PIL" before the "import." It will look like:

from PIL import Image, ImageTk, ImageDraw

There may be a more simple fix but this will do for now. It seems that the original wspr.py from the SVN specifies "from PIL import..." but that is changed in the build process. Where to change that is beyond me at the moment.

minorsecond commented on 2015-01-16 15:51

Want to note that it seems that Python2-Pillow does not work with WSPR and I can only get it to work with Python2-Imaging. I think this may be something that has to be fixed by the dev himself but I'm not sure. Frustrating because upgrade wants to force mo replace the Python2-imaging with Python2-Pillow.

CarstenF commented on 2015-01-16 12:29

Thanks for your updated PKGBUILD.
I've submitted it to AUR.
And I've added i686 ,armv5h, armv6h, armv7h to the working arch.

Thanks for your help!
vy 73 DL1CAF

minorsecond commented on 2015-01-16 12:04

The SVN URL has become out of date again and g95 refuses to compile on my system so I updated the PKGBUILD and WSPR compiles nicely. I've submitted it to the maintainer for review but here is the link for those of you who want to install it.

http://pastebin.com/3WiCk2WD

Enjoy!

minorsecond commented on 2015-01-16 12:03

I changed the pkgbuild locally and WSPR will now compile. This is for a 64-bit system, so change the arch to ('i686') if you are running 32-bit. I sent this to the maintainer for review as well. Enjoy!

# Maintainer: Mike WB2FKO <mph at sportscliche dot com>
pkgname=wspr-svn
pkgver=2460
pkgrel=1
pkgdesc="Weak Signal Propagation Reporter"
arch=('x86_64')
url="http://physics.princeton.edu/pulsar/K1JT/wspr.html"
license=('GPL')
depends=('python2' 'python-imaging' 'python2-numpy' 'libsamplerate' 'portaudio' 'fftw' 'gcc-fortran')
makedepends=('subversion')
source=($pkgname.png
$pkgname.desktop)
md5sums=('dd21318d4aa3423f1fbefc53061cc40d'
'56e94de2f4fded54a6a199caf8ea65ab')

_svntrunk="svn://svn.code.sf.net/p/wsjt/wsjt/branches/wspr"
_svnmod="wspr"

build() {
# Set the build environment to python2
export PYTHON="/usr/bin/python2"
export F2PY="/usr/bin/python2 f2py.py"
unset LDFLAGS
cd "$srcdir"

if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up -r $pkgver)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi

msg "SVN checkout done or server timeout"
msg "Starting make..."

rm -rf "$srcdir/$_svnmod-build"
cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
cd "$srcdir/$_svnmod-build"

# Make problems can sometimes be fixed by replacing g95 with gfortran
./configure --prefix=/usr --enable-gcc-fortran
make
}

package() {
cd "$srcdir/$_svnmod-build"
rm -rf build/
python2 setup.py install --root=$pkgdir/
sed -i 's:python -O wspr.py:python2 -O /usr/bin/wspr.py:' wspr
install -Dm755 wspr $pkgdir/usr/bin/wspr

# Install a menu item with icon
cd $srcdir
mkdir -p $pkgdir/usr/share/pixmaps
mkdir -p $pkgdir/usr/share/applications
mkdir -p $pkgdir/usr/share/doc/$pkgname
install -Dm644 $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
install -Dm644 $pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
cp -ra $srcdir/$_svnmod-build/*.TXT $pkgdir/usr/share/doc/$pkgname/
}

Anonymous comment on 2012-05-23 03:52

WSPR is back at Berlios.

Anonymous comment on 2012-01-07 06:05

New PKGBUILD follows the developers moving from Berlios to SourceForge

Anonymous comment on 2011-03-28 20:23

I cleaned up the file installation as setup.py takes care of almost everything. I'm no longer dumping everything to /opt.

Anonymous comment on 2011-03-14 23:56

Builds the most current WSPR available in the Berlios svn repository.