diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 46 |
1 files changed, 26 insertions, 20 deletions
@@ -1,37 +1,43 @@ -# Maintainer: Andrew Sun <adsun701 at gmail dot com> +# Maintainer: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com> +# Contributor: Andrew Sun <adsun701 at gmail dot com> -pkgname=mingw-w64-glibmm -pkgver=2.64.2 +_name="glibmm" +pkgname="mingw-w64-${_name}" +pkgver=2.66.7 pkgrel=1 pkgdesc="C++ bindings for GLib (mingw-w64)" arch=('any') -url="https://www.gtkmm.org/" -license=('GPL') -makedepends=('mingw-w64-configure') -depends=('mingw-w64-libsigc++' 'mingw-w64-glib2') +url="https://www.gtkmm.org" +license=('LGPL-2.1-or-later') +depends=('mingw-w64-crt' 'mingw-w64-glib2>=2.61.2' 'mingw-w64-libsigc++>=2.9.1') +makedepends=('mingw-w64-meson>=0.55' 'mm-common') options=('!strip' '!buildflags' 'staticlibs') -source=("https://download.gnome.org/sources/glibmm/${pkgver%.*}/glibmm-${pkgver}.tar.xz") -sha256sums=('a75282e58d556d9b2bb44262b6f5fb76c824ac46a25a06f527108bec86b8d4ec') +_pkgsrc="${_name}-${pkgver}" +source=("${_pkgsrc}.tar.xz::https://download.gnome.org/sources/${_name}/${pkgver%.*}/${_pkgsrc}.tar.xz") +sha256sums=('fe02c1e5f5825940d82b56b6ec31a12c06c05c1583cfe62f934d0763e1e542b3') _architectures="i686-w64-mingw32 x86_64-w64-mingw32" build() { - cd "${srcdir}/glibmm-$pkgver/" + cd "${srcdir}" for _arch in ${_architectures}; do - mkdir -p build-${_arch} && pushd build-${_arch} - ${_arch}-configure \ - --disable-documentation \ - .. - make - popd + mkdir -p "${_pkgsrc}/build-${_arch}" + ${_arch}-meson "${_pkgsrc}" "${_pkgsrc}/build-${_arch}" \ + -D maintainer-mode=true \ + -D build-documentation=false \ + -D build-examples=false + meson compile -C "${_pkgsrc}/build-${_arch}" done } package() { + cd "${srcdir}" for _arch in ${_architectures}; do - cd "${srcdir}/glibmm-$pkgver/build-${_arch}" - make DESTDIR="${pkgdir}" install - ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll - ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + meson install -C "${_pkgsrc}/build-${_arch}" --destdir "${pkgdir}" + find "${pkgdir}/usr/${_arch}" -name '*.exe' -exec "${_arch}-strip" "{}" \; + find "${pkgdir}/usr/${_arch}" -name '*.dll' -exec "${_arch}-strip" --strip-unneeded "{}" \; + find "${pkgdir}/usr/${_arch}" \( -name '*.a' -o -name '*.dll' \) -exec "${_arch}-strip" -g '{}' ';' done } + +# vim: ts=2 sw=2 et: |