Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Some One <some.one@some.email.com>
- _realname=munt
- pkgbase=mingw-w64-${_realname}
- pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
- pkgver=2.4.0
- pkgrel=1
- pkgdesc="Software synthesizer emulating pre-GM MIDI devices such as the Roland MT-32, CM-32L, CM-64 and LAPC-I"
- arch=('any')
- url="munt.sourceforge.net/"
- license=("LGPL2.1" "GPL3")
- makedepends=("${MINGW_PACKAGE_PREFIX}-cmake"
- "${MINGW_PACKAGE_PREFIX}-glib2"
- "${MINGW_PACKAGE_PREFIX}-portaudio"
- "${MINGW_PACKAGE_PREFIX}-qt5")
- options=('strip' 'staticlibs')
- source=("https://sourceforge.net/projects/${_realname}/files/${_realname}/${pkgver}/${_realname}-${pkgver}.tar.gz")
- sha256sums=('b4f7054df1d3f89e2cc683ff6182c4d0a272daceffc4d27fd968b6eaebcdc9ed')
- build() {
- cd "${srcdir}"/${_realname}-${pkgver}
- [[ -d "${srcdir}"/build-${CARCH} ]] && rm -rf "${srcdir}"/build-${CARCH}
- mkdir -p "${srcdir}"/build-${CARCH} && cd "${srcdir}"/build-${CARCH}
- declare -a extra_config
- if check_option "debug" "n"; then
- extra_config+=("-DCMAKE_BUILD_TYPE=Release")
- else
- extra_config+=("-DCMAKE_BUILD_TYPE=Debug")
- fi
- MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \
- ${MINGW_PREFIX}/bin/cmake.exe \
- -G"MSYS Makefiles" \
- -DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \
- "${extra_config[@]}" \
- ../${_realname}-${pkgver}
- make
- #shared lib
- mkdir -p "${srcdir}"/build-${CARCH}/libmt32emu && cd "${srcdir}"/build-${CARCH}/libmt32emu
- declare -a extra_config
- if check_option "debug" "n"; then
- extra_config+=("-DCMAKE_BUILD_TYPE=Release")
- else
- extra_config+=("-DCMAKE_BUILD_TYPE=Debug")
- fi
- MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \
- ${MINGW_PREFIX}/bin/cmake.exe \
- -G"MSYS Makefiles" \
- -DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \
- "${extra_config[@]}" \
- ../../${_realname}-${pkgver}/mt32emu
- make
- }
- package() {
- cd "${srcdir}"/build-${CARCH}
- DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/cmake --build . --target install
- cd "${srcdir}"/build-${CARCH}/libmt32emu
- DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/cmake --build . --target install
- install -Dm644 ${srcdir}/${_realname}-${pkgver}/mt32emu_qt/COPYING.txt ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/mt32emu-qt_LICENSE
- install -Dm644 ${srcdir}/${_realname}-${pkgver}/mt32emu_smf2wav/COPYING.txt ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/mt32emu-smf2wav_LICENSE
- install -Dm644 ${srcdir}/${_realname}-${pkgver}/mt32emu/COPYING.LESSER.txt ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/mt32emu_LICENSE
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement