Advertisement
dominus

Untitled

Jan 25th, 2021
485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. # Maintainer: Some One <some.one@some.email.com>
  2.  
  3. _realname=mt32emu
  4. pkgbase=mingw-w64-${_realname}
  5. pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
  6. pkgver=2.4.0
  7. pkgrel=1
  8. pkgdesc="mt32emu is a C/C++ library which allows to emulate (approximately) the Roland MT-32, CM-32L and LAPC-I synthesiser modules."
  9. arch=('any')
  10. url="munt.sourceforge.net/"
  11. license=("LGPL2.1")
  12. makedepends=("${MINGW_PACKAGE_PREFIX}-cmake")
  13. options=('strip' 'staticlibs')
  14. source=("https://sourceforge.net/projects/munt/files/munt/${pkgver}/munt-${pkgver}.tar.gz")
  15. sha256sums=('b4f7054df1d3f89e2cc683ff6182c4d0a272daceffc4d27fd968b6eaebcdc9ed')
  16.  
  17.  
  18. prepare() {
  19. cd "${srcdir}"/munt-${pkgver}/${_realname}
  20. }
  21.  
  22. build() {
  23. cd "${srcdir}"/munt-${pkgver}/${_realname}
  24. [[ -d "${srcdir}"/build-${CARCH} ]] && rm -rf "${srcdir}"/build-${CARCH}
  25. mkdir -p "${srcdir}"/build-${CARCH} && cd "${srcdir}"/build-${CARCH}
  26.  
  27. declare -a extra_config
  28. if check_option "debug" "n"; then
  29. extra_config+=("-DCMAKE_BUILD_TYPE=Release")
  30. else
  31. extra_config+=("-DCMAKE_BUILD_TYPE=Debug")
  32. fi
  33.  
  34. MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \
  35. ${MINGW_PREFIX}/bin/cmake.exe \
  36. -G"MSYS Makefiles" \
  37. -DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \
  38. "${extra_config[@]}" \
  39. ../munt-${pkgver}/${_realname}
  40.  
  41. make
  42. }
  43.  
  44. # no test target in mt32emu
  45. #check() {
  46. # cd "${srcdir}"/build-${CARCH}
  47. #
  48. # cmake --build . --target test
  49. #}
  50.  
  51. package() {
  52. cd "${srcdir}"/build-${CARCH}
  53.  
  54. DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/cmake --build . --target install
  55.  
  56. install -Dm644 ${srcdir}/munt-${pkgver}/${_realname}/COPYING.LESSER.txt ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE
  57. }
  58.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement