| # Maintainer: Alexey Pavlov <alexpux@gmail.com> |
| |
| _realname=gtkmm3 |
| pkgbase=mingw-w64-${_realname} |
| pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" |
| pkgver=3.24.5 |
| pkgrel=1 |
| pkgdesc="C++ bindings for gtk3 (mingw-w64)" |
| arch=('any') |
| mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64') |
| url="https://www.gtkmm.org/" |
| license=("LGPL") |
| depends=("${MINGW_PACKAGE_PREFIX}-atkmm" |
| "${MINGW_PACKAGE_PREFIX}-gcc-libs" |
| "${MINGW_PACKAGE_PREFIX}-pangomm" |
| "${MINGW_PACKAGE_PREFIX}-gtk3") |
| makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" |
| "${MINGW_PACKAGE_PREFIX}-libxslt" |
| "${MINGW_PACKAGE_PREFIX}-meson" |
| "${MINGW_PACKAGE_PREFIX}-ninja" |
| "${MINGW_PACKAGE_PREFIX}-pkg-config") |
| options=('strip' '!debug' 'staticlibs') |
| source=("https://download.gnome.org/sources/gtkmm/${pkgver%.*}/gtkmm-${pkgver}.tar.xz") |
| sha256sums=('856333de86689f6a81c123f2db15d85db9addc438bc3574c36f15736aeae22e6') |
| |
| prepare() { |
| cd "${srcdir}/gtkmm-${pkgver}" |
| } |
| |
| build() { |
| [[ -d "${srcdir}/build-${MINGW_CHOST}" ]] && rm -rf "${srcdir}/build-${MINGW_CHOST}" |
| mkdir -p "${srcdir}/build-${MINGW_CHOST}" && cd "${srcdir}/build-${MINGW_CHOST}" |
| |
| declare -a extra_config |
| if check_option "debug" "n"; then |
| extra_config+=("--buildtype=release") |
| else |
| extra_config+=("--buildtype=debug") |
| fi |
| |
| CFLAGS+=" -Wno-attributes" \ |
| CXXFLAGS+=" -Wno-attributes" \ |
| MSYS2_ARG_CONV_EXCL="--prefix=" \ |
| ${MINGW_PREFIX}/bin/meson.exe \ |
| --prefix="${MINGW_PREFIX}" \ |
| "${extra_config[@]}" \ |
| --wrap-mode=nodownload \ |
| --default-library=both \ |
| --auto-features=enabled \ |
| -Dmaintainer-mode=false \ |
| -Dbuild-documentation=false \ |
| -Dbuild-demos=false \ |
| -Dbuild-tests=true \ |
| "../gtkmm-${pkgver}" |
| |
| ${MINGW_PREFIX}/bin/meson.exe compile |
| } |
| |
| check() { |
| cd "${srcdir}/build-${MINGW_CHOST}" |
| ${MINGW_PREFIX}/bin/meson.exe test || true |
| } |
| |
| package() { |
| cd "${srcdir}/build-${MINGW_CHOST}" |
| |
| DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/meson.exe install |
| |
| install -Dm644 "${srcdir}/gtkmm-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING" |
| install -Dm644 "${srcdir}/gtkmm-${pkgver}/COPYING.tools" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING.tools" |
| } |