updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / linpsk / PKGBUILD
blobd15f552d1dbe6385a2a285e0adf7c87a187a4843
1 # Maintainer: WB2FKO <mph at sportscliche dot com>
2 pkgname=linpsk
3 pkgver=1.1
4 pkgrel=1
5 pkgdesc="PSK31 for Linux"
6 arch=('i686')
7 url="http://sourceforge.net/projects/linpsk/"
8 license=('GPL')
9 depends=('gcc' 'fftw' 'qt' 'alsa-lib')
10 source=(http://sourceforge.net/projects/linpsk/files/linpsk/$pkgname-$pkgver/$pkgname-$pkgver.tgz
11               $pkgname.desktop)
12 md5sums=('9a5bad0a86ef34d33a38bfad73fe3f4c'
13          '88dcc2a61895c89c63e4f900d2f9481c')
14 build() {
15   cd "$srcdir/$pkgname"
16   qmake -unix -o Makefile linpsk.pro
17   make
20 check() {
21   cd "$srcdir/$pkgname"
22   make -k check
25 package() {
26   mkdir -p $pkgdir/usr/share/$pkgname
27   mkdir -p $pkgdir/usr/share/$pkgname/doc
28   cd "$srcdir/$pkgname/bin"
29   install -Dm755 linpsk $pkgdir/usr/bin/linpsk
30   cd "$srcdir/$pkgname"
31   install -m 0644 asoundrc $pkgdir/usr/share/$pkgname/doc/
32   install -m 0644 COPYING $pkgdir/usr/share/$pkgname/doc/
33   install -m 0644 README $pkgdir/usr/share/$pkgname/doc/
35   mkdir -p $pkgdir/usr/share/pixmaps
36   mkdir -p $pkgdir/usr/share/applications
37   cd $srcdir
38   install -Dm644 $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
39   cd "$srcdir/$pkgname/images"
40   install -Dm644  $pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
43 # vim:set ts=2 sw=2 et: