summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Miller2018-06-07 20:00:48 -0500
committerNeal Miller2018-06-07 20:00:48 -0500
commitc4b26ff2c059439073903887cc19edf31005a025 (patch)
tree4ed6a7a409add63155b2aae199a6840cb7011b19
downloadaur-c4b26ff2c059439073903887cc19edf31005a025.tar.gz
Initial release of wsjtx (git version) on the AUR
-rw-r--r--.SRCINFO31
-rw-r--r--PKGBUILD45
-rw-r--r--wsjtx.patch23
3 files changed, 99 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4910f7b3985
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,31 @@
+pkgbase = wsjtx-git
+ pkgdesc = Software for Amateur Radio Weak-Signal Communication (JT9 and JT65)
+ pkgver = r4207.11dfce32
+ pkgrel = 1
+ url = http://physics.princeton.edu/pulsar/k1jt/wsjtx.html
+ arch = i686
+ arch = x86_64
+ license = GPL-3
+ makedepends = cmake
+ makedepends = git
+ makedepends = asciidoc
+ depends = qt5-base
+ depends = qt5-multimedia
+ depends = qt5-serialport
+ depends = libusb
+ depends = libusb-compat
+ depends = fftw
+ depends = gcc-fortran
+ depends = hamlib
+ provides = wsjtx
+ conflicts = wsjtx
+ conflicts = wsjtx-bin
+ conflicts = wsjtx-bin-rpm
+ conflicts = wsjtx-svn
+ source = git+https://git.code.sf.net/p/wsjt/wsjtx/
+ source = wsjtx.patch
+ md5sums = SKIP
+ md5sums = 57650d8febe9810c4d3bc9f8c5cda75d
+
+pkgname = wsjtx-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fd434752e08
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Neal Miller <ac9qd@protonmail.com>
+# Contributor: Thomas Gatzweiler <thomas.gatzweiler@gmail.com> wsjtx-svn maintainer
+
+pkgname=wsjtx-git
+pkgver=r4207.11dfce32
+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 fftw gcc-fortran hamlib)
+makedepends=('cmake' 'git' 'asciidoc')
+provides=("wsjtx")
+conflicts=("wsjtx" "wsjtx-bin" "wsjtx-bin-rpm" "wsjtx-svn")
+source=("git+https://git.code.sf.net/p/wsjt/wsjtx/"
+ "wsjtx.patch")
+md5sums=("SKIP"
+ "57650d8febe9810c4d3bc9f8c5cda75d")
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cp wsjtx.patch "$srcdir/${pkgname%-git}"
+ cd "$srcdir/${pkgname%-git}"
+ patch -i wsjtx.patch
+ sed -ri 's/^find_package \(hamlib 3 REQUIRED\)/set \(hamlib_LIBRARIES hamlib\)/' CMakeLists.txt
+}
+
+build() {
+ mkdir -p "$srcdir/${pkgname%-git}/build"
+ cd "$srcdir/${pkgname%-git}/build"
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
+ make
+}
+
+# make pkg file and reverse patch so its ready for next update
+package() {
+ cd "$srcdir/${pkgname%-git}/build"
+ make DESTDIR="$pkgdir/" install
+ cd "$srcdir/${pkgname%-git}"
+ patch -R CMakeLists.txt wsjtx.patch
+}
diff --git a/wsjtx.patch b/wsjtx.patch
new file mode 100644
index 00000000000..c55d1428b8e
--- /dev/null
+++ b/wsjtx.patch
@@ -0,0 +1,23 @@
+diff -ur /CMakeLists.txt /CMakeLists.txt
+--- /CMakeLists.txt 2018-05-31 02:29:47.000000000 +0200
++++ /CMakeLists.txt 2018-06-03 09:34:15.109877528 +0200
+@@ -1343,7 +1343,8 @@
+ )
+ endif ()
+ endif ()
+-qt5_use_modules (wsjtx SerialPort) # not sure why the interface link library syntax above doesn't work
++find_package(Qt5SerialPort)
++target_link_libraries (wsjtx Qt5::SerialPort)
+
+ # make a library for WSJT-X UDP servers
+ # add_library (wsjtx_udp SHARED ${UDP_library_CXXSRCS})
+@@ -1364,7 +1365,8 @@
+ )
+ target_compile_definitions (wsjtx_udp-static PUBLIC UDP_STATIC_DEFINE)
+ #qt5_use_modules (wsjtx_udp Network)
+-qt5_use_modules (wsjtx_udp-static Network Gui)
++target_link_libraries(wsjtx_udp-static Qt5::Network Qt5::Gui)
++
+ generate_export_header (wsjtx_udp-static BASE_NAME udp)
+
+ add_executable (udp_daemon UDPExamples/UDPDaemon.cpp UDPExamples/udp_daemon.rc ${WSJTX_ICON_FILE})