[arch-commits] Commit in zynaddsubfx/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 13:08:57 UTC 2020
Date: Tuesday, July 7, 2020 @ 13:08:57
Author: felixonmars
Revision: 658346
archrelease: copy trunk to community-staging-x86_64
Added:
zynaddsubfx/repos/community-staging-x86_64/
zynaddsubfx/repos/community-staging-x86_64/PKGBUILD
(from rev 658345, zynaddsubfx/trunk/PKGBUILD)
zynaddsubfx/repos/community-staging-x86_64/zynaddsubfx-fix-bash-completion-installation.patch
(from rev 658345, zynaddsubfx/trunk/zynaddsubfx-fix-bash-completion-installation.patch)
zynaddsubfx/repos/community-staging-x86_64/zynaddsubfx-system-rtosc.patch
(from rev 658345, zynaddsubfx/trunk/zynaddsubfx-system-rtosc.patch)
----------------------------------------------------+
PKGBUILD | 85 +++++++++++++++++++
zynaddsubfx-fix-bash-completion-installation.patch | 24 +++++
zynaddsubfx-system-rtosc.patch | 49 ++++++++++
3 files changed, 158 insertions(+)
Copied: zynaddsubfx/repos/community-staging-x86_64/PKGBUILD (from rev 658345, zynaddsubfx/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-07-07 13:08:57 UTC (rev 658346)
@@ -0,0 +1,85 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: SpepS <dreamspepser at yahoo dot it>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: DonVla <donvla at users.sourceforge.net>
+
+pkgname=zynaddsubfx
+pkgver=3.0.5
+pkgrel=2
+pkgdesc="Opensource software synthesizer capable of making a countless number of instruments."
+arch=('x86_64')
+url="http://zynaddsubfx.sourceforge.net"
+license=('GPL2')
+groups=('lv2-plugins' 'pro-audio' 'vst-plugins')
+depends=('fftw' 'hicolor-icon-theme' 'liblo' 'libxpm' 'mxml' 'ntk' 'portaudio' 'rtosc')
+#makedepends=('asciidoc' 'asciidoctor' 'dblatex' 'cmake' 'doxygen' 'ghostscript' 'gnuplot' 'imagemagick' 'texlive-pictures' 'texlive-pstricks')
+makedepends=('asciidoc' 'asciidoctor' 'cmake' 'doxygen')
+# tests don't link: https://sourceforge.net/p/zynaddsubfx/bugs/186/
+# checkdepends=('cxxtest')
+# zyn-fusion is still too fragmented to be build:
+# https://github.com/zynaddsubfx/zyn-fusion-issues/issues/214
+# https://github.com/zynaddsubfx/zyn-fusion-issues/issues/215
+# https://github.com/zynaddsubfx/zyn-fusion-issues/issues/216
+# https://github.com/zynaddsubfx/zyn-fusion-issues/issues/217
+source=("https://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2"
+ "${pkgname}-system-rtosc.patch"
+ "${pkgname}-fix-bash-completion-installation.patch")
+sha512sums=('1e4d5a6393937e6c7103e6d0e97df76f2d129350854c2f338aa888591091b1508c63e9b52c8e5a176e282ff2f6b72c6a87de54875c412771aff26e8ece2c84e8'
+ 'e12f6925bc18012a2cee816d94eca51a0e39a9ba020f9692537ba8df839faa954c6dda86a334de59d7c036fa00b77968bae78eb39971a4c58eb126fafafedd7e'
+ '667196e5c75286613e6b191645c7edf1e8da6ca54a4e95a34994c3172a0706c1dae48804081299f03cd75b63907f972b2c1ccfa3bb07011cdfda1fd29b21ed69')
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ mkdir -vp build
+ # devendor rtosc: https://sourceforge.net/p/zynaddsubfx/bugs/184/
+ patch -Np1 -i "../${pkgname}-system-rtosc.patch"
+ patch -Np1 -i "../${pkgname}-fix-bash-completion-installation.patch"
+}
+
+build() {
+ cd "${pkgname}-${pkgver}/build"
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DDefaultOutput=jack \
+ -DDefaultInput=jack \
+ -DGuiModule=ntk \
+ ..
+ make VERBOSE=1
+ (
+ # building only man and html documentation
+ # generating a pdf is broken: https://bugs.archlinux.org/task/59778
+ # https://sourceforge.net/p/zynaddsubfx/bugs/185/
+ cd ../doc
+ make man
+ make xhtml
+ )
+}
+
+# check() {
+# cd "${pkgname}-${pkgver}/build"
+# make -k test
+# }
+
+package() {
+ cd "${pkgname}-${pkgver}/build"
+ make DESTDIR="${pkgdir}/" install
+ # banks and examples
+ install -vd "${pkgdir}/usr/share/${pkgname}"
+ cp -va ../instruments/banks "${pkgdir}/usr/share/${pkgname}"
+ cp -va ../instruments/examples "${pkgdir}/usr/share/${pkgname}"
+ # icons
+ install -vDm 644 "../${pkgname}.ico" \
+ "${pkgdir}/usr/share/pixmaps/${pkgname}.ico"
+ install -vDm 644 "../${pkgname}.svg" \
+ "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg"
+ # man page
+ install -vDm 644 "../doc/${pkgname}.1" \
+ "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+ # documentation
+ install -vDm 644 "../doc/${pkgname}.html" \
+ "${pkgdir}/usr/share/doc/${pkgname}/${pkgname}.html"
+# install -vDm 644 "../doc/${pkgname}.pdf" \
+# "${pkgdir}/usr/share/doc/${pkgname}/${pkgname}.pdf"
+ cp -va ../doc/images "${pkgdir}/usr/share/doc/${pkgname}/"
+}
Copied: zynaddsubfx/repos/community-staging-x86_64/zynaddsubfx-fix-bash-completion-installation.patch (from rev 658345, zynaddsubfx/trunk/zynaddsubfx-fix-bash-completion-installation.patch)
===================================================================
--- community-staging-x86_64/zynaddsubfx-fix-bash-completion-installation.patch (rev 0)
+++ community-staging-x86_64/zynaddsubfx-fix-bash-completion-installation.patch 2020-07-07 13:08:57 UTC (rev 658346)
@@ -0,0 +1,24 @@
+diff -ruN a/cmake/BashCompletion.cmake d/cmake/BashCompletion.cmake
+--- a/cmake/BashCompletion.cmake 2019-02-23 16:43:37.000000000 +0100
++++ d/cmake/BashCompletion.cmake 2019-04-19 00:21:17.721631142 +0200
+@@ -78,15 +78,15 @@
+ BASHCOMP_PKG_PATH=\"${BASHCOMP_PKG_PATH}\"\n\
+ fi\n\
+ echo -e \"\\nInstalling bash completion...\\n\"\n\
+-mkdir -p \"\$BASHCOMP_PKG_PATH\"\n\
+-cp \"${CMAKE_CURRENT_BINARY_DIR}/${SCRIPT_NAME}\" \"\$BASHCOMP_PKG_PATH\"\n\
+-chmod a+r \"\$BASHCOMP_PKG_PATH/${SCRIPT_NAME}\"\n\
+-echo -e \"Bash completion for ${SCRIPT_NAME} has been installed to \$BASHCOMP_PKG_PATH/${SCRIPT_NAME}\"\n\
++mkdir -p \"\${DESTDIR}/$BASHCOMP_PKG_PATH\"\n\
++cp \"${CMAKE_CURRENT_BINARY_DIR}/${SCRIPT_NAME}\" \"\${DESTDIR}/$BASHCOMP_PKG_PATH\"\n\
++chmod a+r \"\${DESTDIR}/$BASHCOMP_PKG_PATH/${SCRIPT_NAME}\"\n\
++echo -e \"Bash completion for ${SCRIPT_NAME} has been installed to \${DESTDIR}/$BASHCOMP_PKG_PATH/${SCRIPT_NAME}\"\n\
+ ")
+ INSTALL(CODE "EXECUTE_PROCESS(COMMAND chmod u+x \"install_${SCRIPT_NAME}_completion.sh\" WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )")
+ INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"./install_${SCRIPT_NAME}_completion.sh\" WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )")
+
+- MESSAGE(STATUS "Bash completion script for ${SCRIPT_NAME} will be installed to ${BASHCOMP_PKG_PATH} or fallback to ${BASHCOMP_USER_PATH} if unwritable.")
++ MESSAGE(STATUS "Bash completion script for ${SCRIPT_NAME} will be installed to ${DESTDIR}/${BASHCOMP_PKG_PATH} or fallback to ${BASHCOMP_USER_PATH} if unwritable.")
+ ENDMACRO()
+ ENDIF()
+
Copied: zynaddsubfx/repos/community-staging-x86_64/zynaddsubfx-system-rtosc.patch (from rev 658345, zynaddsubfx/trunk/zynaddsubfx-system-rtosc.patch)
===================================================================
--- community-staging-x86_64/zynaddsubfx-system-rtosc.patch (rev 0)
+++ community-staging-x86_64/zynaddsubfx-system-rtosc.patch 2020-07-07 13:08:57 UTC (rev 658346)
@@ -0,0 +1,49 @@
+diff -ruN a/CMakeLists.txt b/CMakeLists.txt
+--- a/CMakeLists.txt 2019-04-15 06:05:59.000000000 +0200
++++ b/CMakeLists.txt 2019-04-16 21:01:48.285475235 +0200
+@@ -11,23 +11,32 @@
+ endif()
+
+ #Include RTOSC
+-if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/rtosc/CMakeLists.txt")
+- message(STATUS "RTOSC NOT FOUND")
+- message(STATUS "Attempting to checkout submodule")
+- find_package(Git REQUIRED)
+- execute_process(COMMAND git submodule update --init)
++find_package(PkgConfig)
++set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE)
++pkg_check_modules(RTOSC REQUIRED librtosc )
++if(RTOSC_FOUND)
++ message(STATUS "Found Rtosc system package...")
++ message(STATUS "Including from: ${RTOSC_INCLUDE_DIR}")
++ include_directories(${RTOSC_INCLUDE_DIR})
++else()
+ if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/rtosc/CMakeLists.txt")
+- message(FATAL_ERROR "FAILED TO CHECKOUT RTOSC\n"
+- "please check file permissions and your network")
++ message(STATUS "RTOSC NOT FOUND")
++ message(STATUS "Attempting to checkout submodule")
++ find_package(Git REQUIRED)
++ execute_process(COMMAND git submodule update --init)
++ if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/rtosc/CMakeLists.txt")
++ message(FATAL_ERROR "FAILED TO CHECKOUT RTOSC\n"
++ "please check file permissions and your network")
++ endif()
++ else()
++ message(STATUS "Found Rtosc Submodule...")
+ endif()
+-else()
+- message(STATUS "Found Rtosc Submodule...")
++ set(RTOSC_NO_INSTALL TRUE)
++ include("rtosc/cmake/ColorMessage.cmake")
++ add_subdirectory(rtosc)
++ include_directories(rtosc/include)
+ endif()
+
+-set(RTOSC_NO_INSTALL TRUE)
+-include("rtosc/cmake/ColorMessage.cmake")
+-add_subdirectory(rtosc)
+-include_directories(rtosc/include)
+
+ enable_testing()
+ include(CTestConfig.cmake)
More information about the arch-commits
mailing list