Advertisement
dominus

Untitled

Jan 26th, 2021
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. # Maintainer: Some One <some.one@some.email.com>
  2.  
  3. _realname=munt
  4. pkgbase=mingw-w64-${_realname}
  5. pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
  6. pkgver=2.4.0
  7. pkgrel=1
  8. pkgdesc="Software synthesizer emulating pre-GM MIDI devices such as the Roland MT-32, CM-32L, CM-64 and LAPC-I"
  9. arch=('any')
  10. url="munt.sourceforge.net/"
  11. license=("LGPL2.1" "GPL3")
  12. makedepends=("${MINGW_PACKAGE_PREFIX}-cmake"
  13. "${MINGW_PACKAGE_PREFIX}-glib2"
  14. "${MINGW_PACKAGE_PREFIX}-portaudio"
  15. "${MINGW_PACKAGE_PREFIX}-qt5")
  16. options=('strip' 'staticlibs')
  17. source=("https://sourceforge.net/projects/${_realname}/files/${_realname}/${pkgver}/${_realname}-${pkgver}.tar.gz")
  18. sha256sums=('b4f7054df1d3f89e2cc683ff6182c4d0a272daceffc4d27fd968b6eaebcdc9ed')
  19.  
  20. build() {
  21. cd "${srcdir}"/${_realname}-${pkgver}
  22. [[ -d "${srcdir}"/build-${CARCH} ]] && rm -rf "${srcdir}"/build-${CARCH}
  23. mkdir -p "${srcdir}"/build-${CARCH} && cd "${srcdir}"/build-${CARCH}
  24.  
  25. declare -a extra_config
  26. if check_option "debug" "n"; then
  27. extra_config+=("-DCMAKE_BUILD_TYPE=Release")
  28. else
  29. extra_config+=("-DCMAKE_BUILD_TYPE=Debug")
  30. fi
  31.  
  32. MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \
  33. ${MINGW_PREFIX}/bin/cmake.exe \
  34. -G"MSYS Makefiles" \
  35. -DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \
  36. "${extra_config[@]}" \
  37. ../${_realname}-${pkgver}
  38. make
  39.  
  40. #shared lib
  41. mkdir -p "${srcdir}"/build-${CARCH}/libmt32emu && cd "${srcdir}"/build-${CARCH}/libmt32emu
  42.  
  43. declare -a extra_config
  44. if check_option "debug" "n"; then
  45. extra_config+=("-DCMAKE_BUILD_TYPE=Release")
  46. else
  47. extra_config+=("-DCMAKE_BUILD_TYPE=Debug")
  48. fi
  49.  
  50. MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \
  51. ${MINGW_PREFIX}/bin/cmake.exe \
  52. -G"MSYS Makefiles" \
  53. -DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \
  54. "${extra_config[@]}" \
  55. ../../${_realname}-${pkgver}/mt32emu
  56. make
  57. }
  58.  
  59. package() {
  60. cd "${srcdir}"/build-${CARCH}
  61.  
  62. DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/cmake --build . --target install
  63.  
  64. cd "${srcdir}"/build-${CARCH}/libmt32emu
  65.  
  66. DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/cmake --build . --target install
  67.  
  68. install -Dm644 ${srcdir}/${_realname}-${pkgver}/mt32emu_qt/COPYING.txt ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/mt32emu-qt_LICENSE
  69. install -Dm644 ${srcdir}/${_realname}-${pkgver}/mt32emu_smf2wav/COPYING.txt ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/mt32emu-smf2wav_LICENSE
  70. install -Dm644 ${srcdir}/${_realname}-${pkgver}/mt32emu/COPYING.LESSER.txt ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/mt32emu_LICENSE
  71. }
  72.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement