Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Some One <some.one@some.email.com>
- _realname=mt32emu
- pkgbase=mingw-w64-${_realname}
- pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
- pkgver=2.4.0
- pkgrel=1
- pkgdesc="mt32emu is a C/C++ library which allows to emulate (approximately) the Roland MT-32, CM-32L and LAPC-I synthesiser modules."
- arch=('any')
- url="munt.sourceforge.net/"
- license=("LGPL2.1")
- makedepends=("${MINGW_PACKAGE_PREFIX}-cmake")
- options=('strip' 'staticlibs')
- source=("https://sourceforge.net/projects/munt/files/munt/${pkgver}/munt-${pkgver}.tar.gz")
- sha256sums=('b4f7054df1d3f89e2cc683ff6182c4d0a272daceffc4d27fd968b6eaebcdc9ed')
- prepare() {
- cd "${srcdir}"/munt-${pkgver}/${_realname}
- }
- build() {
- cd "${srcdir}"/munt-${pkgver}/${_realname}
- [[ -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[@]}" \
- ../munt-${pkgver}/${_realname}
- make
- }
- # no test target in mt32emu
- #check() {
- # cd "${srcdir}"/build-${CARCH}
- #
- # cmake --build . --target test
- #}
- package() {
- cd "${srcdir}"/build-${CARCH}
- DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/cmake --build . --target install
- install -Dm644 ${srcdir}/munt-${pkgver}/${_realname}/COPYING.LESSER.txt ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement