| # Maintainer: Alexey Pavlov <alexpux@gmail.com> |
| |
| _realname=atkmm |
| pkgbase=mingw-w64-${_realname} |
| pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" |
| pkgver=2.28.2 |
| pkgrel=1 |
| pkgdesc="C++ bindings for atk (V2.28) (mingw-w64)" |
| arch=('any') |
| mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32') |
| url="https://www.gtkmm.org/" |
| license=("LGPL") |
| depends=("${MINGW_PACKAGE_PREFIX}-atk" |
| "${MINGW_PACKAGE_PREFIX}-glibmm" |
| "${MINGW_PACKAGE_PREFIX}-libsigc++") |
| makedepends=("${MINGW_PACKAGE_PREFIX}-libxslt" |
| "${MINGW_PACKAGE_PREFIX}-meson" |
| "${MINGW_PACKAGE_PREFIX}-pkg-config") |
| options=('strip' '!debug' 'staticlibs') |
| source=("https://download.gnome.org/sources/${_realname}/${pkgver%.*}/${_realname}-${pkgver}.tar.xz") |
| sha256sums=('a0bb49765ceccc293ab2c6735ba100431807d384ffa14c2ebd30e07993fd2fa4') |
| |
| 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 \ |
| "../${_realname}-${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}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING" |
| install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING.tools" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING.tools" |
| } |