summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 088af3d137c4462b2304881f06ea5e9ed03ac5ed (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Maintainer: Joshua Rubin <me at jawa dot dev>
# Maintainer: James Bowling <kf5u AT pm DOT me>

pkgname=jtdx
pkgver=2.2.159
pkgrel=2
pkgdesc='For amateur radio communication using very weak signals. Forked from WSJT-X.'
arch=('x86_64')
url='https://github.com/jtdx-project/jtdx'
license=('GPL3')

depends=(
    'fftw'
    'hamlib>=4.5'
    'libusb'
    'portaudio'
    'qt5-base'
    'qt5-multimedia'
    'qt5-serialport'
    'qt5-tools'
    'qt5-websockets'
    'readline'
)

makedepends=(
    'cmake'
    'asciidoc'
    'asciidoctor'
    'boost'
    'gcc-fortran'
    'git'
    'texinfo'
)

provides=('jtdx')
conflicts=('jtdx-improved' 'jtdx-improved-jtdxgui')
source=("${pkgname%-git}::git://git.code.sf.net/p/jtdx/code")
md5sums=('SKIP')
sha1sums=('SKIP')

prepare() {
    mkdir -p "$srcdir"/${pkgname%-git}/jtdx-prefix/build
}

build() {
    cd "$srcdir"/${pkgname%-git}/jtdx-prefix/build
	cmake \
        -Wno-dev \
        -DCMAKE_PREFIX_PATH="$srcdir"/${pkgname%-git}/hamlib-prefix \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_BUILD_TYPE=Release \
        -DWSJT_SKIP_MANPAGES=ON \
        -DWSJT_GENERATE_DOCS=OFF \
        "$srcdir"/${pkgname%-git}
    make || return 1
}

package() {
  cd "$srcdir"/${pkgname%-git}/jtdx-prefix/build
  make DESTDIR=${pkgdir} install
}