# Maintainer: Alexey Pavlov # Contributor: Renato Silva _realname=at-spi2-core pkgbase="mingw-w64-${_realname}" pkgname="${MINGW_PACKAGE_PREFIX}-atk" pkgver=2.54.0 pkgrel=1 pkgdesc="Interface definitions of accessibility infrastructure (mingw-w64)" arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') url="https://gitlab.gnome.org/GNOME/at-spi2-core" license=('spdx:LGPL-2.1-or-later') depends=( "${MINGW_PACKAGE_PREFIX}-gettext-runtime" "${MINGW_PACKAGE_PREFIX}-glib2" ) makedepends=( "${MINGW_PACKAGE_PREFIX}-cc" "${MINGW_PACKAGE_PREFIX}-gettext-tools" "${MINGW_PACKAGE_PREFIX}-gobject-introspection" "${MINGW_PACKAGE_PREFIX}-libxml2" "${MINGW_PACKAGE_PREFIX}-meson" "${MINGW_PACKAGE_PREFIX}-ninja" "${MINGW_PACKAGE_PREFIX}-pkgconf" ) source=("https://download.gnome.org/sources/at-spi2-core/${pkgver%.*}/${_realname}-${pkgver}.tar.xz") sha256sums=('d7eee7e75beddcc272cedc2b60535600f3aae6e481589ebc667afc437c0a6079') prepare() { cd "${_realname}-${pkgver}" } build() { MSYS2_ARG_CONV_EXCL="--prefix=" \ ${MINGW_PREFIX}/bin/meson.exe setup \ --prefix="${MINGW_PREFIX}" \ --buildtype plain \ --wrap-mode=nodownload \ --default-library=both \ -Datk_only=true \ "${_realname}-${pkgver}" \ "build-${MSYSTEM}" ${MINGW_PREFIX}/bin/meson.exe compile -C "build-${MSYSTEM}" } package() { ${MINGW_PREFIX}/bin/meson.exe install -C "build-${MSYSTEM}" --destdir "${pkgdir}" install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING" }