summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 55dfecc14c38d3a279eff13fc5655416b3092852 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Thomas Gatzweiler <thomas.gatzweiler@gmail.com>

pkgname=wsjtx-bin
pkgver=1.8.0
pkgrel=1
pkgdesc="Software for Amateur Radio Weak-Signal Communication (JT9 and JT65)"
arch=(i686 x86_64)
url="http://physics.princeton.edu/pulsar/k1jt/wsjtx.html"
license=("GPL-3")
depends=(qt5-base qt5-multimedia qt5-serialport libusb libusb-compat gcc-fortran libpulse libpng)
provides=(wsjtx)
conflicts=(wsjtx)
makedepends=()

if [ "$CARCH" == "x86_64" ]; then
  debfile="wsjtx_1.8.0_amd64.deb"
  md5sums=(8b607896f712c89be1d4b318cd4edbe2)
else
  debfile="wsjtx_1.8.0_i386.deb"
  md5sums=(9b831d1a0537193597aef03dea39a278)
fi

source=("http://physics.princeton.edu/pulsar/k1jt/${debfile}")

prepare() {
  cd "$srcdir"
  ar vx $debfile
}

package() {
  cd "$srcdir"
  tar -C ${pkgdir}/ -xvf data.tar.gz
  cd "$pkgdir"
  chmod 755 usr/ usr/share/ usr/bin/ usr/share/doc/
  chmod 755 usr/share/applications/ usr/share/pixmaps/
}