1 # Maintainer: WB2FKO <mph at sportscliche dot com>
5 pkgdesc="Software defined radio receiver for x11"
7 url="http://www.sm5bsz.com/linuxdsp/linrad.htm"
9 depends=('portaudio' 'libxext' 'libusb-compat')
10 makedepends=('nasm-git')
11 source=(http://www.sm5bsz.com/linuxdsp/archive/lir03-21.tbz
14 md5sums=('aa5dcc60c3be6d440208d9ebe5855c11'
15 '9e25fa8914f415a1d9f6d60801752b6a'
16 'ea517ef26b57959d857e49d4a6a8f65e')
19 cd "$srcdir/$pkgname-$pkgver"
21 ./configure --prefix=/usr
22 # There is an option to build for a 64-bit system by replacing "make xlinrad" with "make xlinrad64"
27 # Place the entire package in /opt
28 mkdir -p $pkgdir/opt/$pkgname
29 mv $srcdir/$pkgname-$pkgver $pkgdir/opt/$pkgname
30 chown -R $USER: $pkgdir/opt/$pkgname
31 find "$pkgdir/opt/$pkgname/" -type d | xargs chmod 755
32 find "$pkgdir/opt/$pkgname/" -type d | xargs chmod 755
34 # Install a menu item with icon
36 mkdir -p $pkgdir/usr/share/pixmaps
37 mkdir -p $pkgdir/usr/share/applications
38 install -Dm644 $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
39 install -Dm644 $pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
41 echo -e "\n Linrad will be installed in the /opt directory of root \n"
43 # vim:set ts=2 sw=2 et: