diff options
author | Neal | 2022-04-20 18:44:41 -0500 |
---|---|---|
committer | Neal | 2022-04-20 18:44:41 -0500 |
commit | f7ba2e3346113acf9aee334e75bc6c2fdbb59c45 (patch) | |
tree | 0e15abaefcc9c24a0301e91d0f62aebc7494b8be | |
parent | 5ec1a3f1537f21c12906c1806f86b982ebcaa13c (diff) | |
download | aur-f7ba2e3346113acf9aee334e75bc6c2fdbb59c45.tar.gz |
Add patch to skip Italian translations so it builds. Clean up PKGBUILD
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | 0001_translations_fix.patch | 22 | ||||
-rw-r--r-- | PKGBUILD | 16 |
3 files changed, 30 insertions, 10 deletions
@@ -1,7 +1,7 @@ pkgbase = wsjtx-git pkgdesc = Software for Amateur Radio Weak-Signal Communication (JT9 and JT65) pkgver = r9132.d28164e92 - pkgrel = 1 + pkgrel = 2 url = http://physics.princeton.edu/pulsar/k1jt/wsjtx.html arch = i686 arch = x86_64 diff --git a/0001_translations_fix.patch b/0001_translations_fix.patch new file mode 100644 index 000000000000..67e1c4a06780 --- /dev/null +++ b/0001_translations_fix.patch @@ -0,0 +1,22 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 69e3ae956..575cc1853 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1255,7 +1255,7 @@ set (LANGUAGES + # doesn't need to be populated) + en_GB # English UK + es # Spanish +- it # Italian ++ #it # Italian + ja # Japanese + #no # Norwegian + #pt # Portuguese +@@ -1263,7 +1263,7 @@ set (LANGUAGES + zh # Chinese + zh_HK # Chinese per Hong Kong + zh_TW # Chinese traditional +- it # Italian ++ #it # Italian + ) + foreach (lang_ ${LANGUAGES}) + file (TO_NATIVE_PATH ${CMAKE_SOURCE_DIR}/translations/wsjtx_${lang_}.ts ts_) @@ -3,7 +3,7 @@ pkgname=wsjtx-git pkgver=r9132.d28164e92 -pkgrel=1 +pkgrel=2 pkgdesc='Software for Amateur Radio Weak-Signal Communication (JT9 and JT65)' # change _wsjtx_tag to other versions such as wsjtx-2.5.0-rc1 _wsjtx_tag=master @@ -24,18 +24,16 @@ pkgver() { prepare() { cd "$srcdir/${pkgname%-git}" + patch -i ../../0001_translations_fix.patch } build() { - mkdir -p "$srcdir/${pkgname%-git}/build" - cd "$srcdir/${pkgname%-git}/build" - cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .. - make + cmake -B build -S "${pkgname%-git}" \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -DCMAKE_BUILD_TYPE='Release' + cmake --build build } -# 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}" + DESTDIR="$pkgdir" cmake --install build } |