PKGBUILD 992 B

12345678910111213141516171819202122232425262728293031
  1. # Maintainer: Thomas Gatzweiler <thomas.gatzweiler@gmail.com>
  2. pkgname=wsjtx
  3. pkgver=2.1.2
  4. pkgrel=1
  5. pkgdesc="Software for Amateur Radio Weak-Signal Communication (JT9 and JT65)"
  6. arch=('i686' 'x86_64')
  7. url="http://physics.princeton.edu/pulsar/k1jt/wsjtx.html"
  8. license=('GPL-3')
  9. makedepends=(cmake asciidoc asciidoctor)
  10. depends=(qt5-base qt5-multimedia qt5-serialport qt5-tools libusb libusb-compat gcc-fortran libpulse libpng fftw)
  11. source=(http://physics.princeton.edu/pulsar/K1JT/$pkgname-$pkgver.tgz disable-qstring-hash-code.patch)
  12. sha1sums=('a4b4b533b0e19ecaf2a08997737838c2ca5e95ca' 'd2646101b716f789f9e2f947f51e285241196f84')
  13. prepare() {
  14. cd "$pkgname-$pkgver"
  15. cat $srcdir/disable-qstring-hash-code.patch >> wsjtx.patch
  16. }
  17. build() {
  18. mkdir -p $srcdir/build
  19. cd $srcdir/build
  20. cmake -Wno-dev -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release $srcdir/$pkgname-$pkgver
  21. make || return 1
  22. }
  23. package() {
  24. cd "${srcdir}/build"
  25. make DESTDIR="${pkgdir}" install
  26. }