# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>

pkgname=mm-common
pkgver=1.0.6
pkgrel=1.1
pkgdesc="Common build files of the C++ bindings"
url="https://www.gtkmm.org/"
arch=(any)
license=(GPL-2.0-or-later)
depends=(
#  doxygen
#  graphviz
#  gtk-doc
#  libsigc++-docs
  perl-xml-parser
)
makedepends=(
  git
# libsigc++
  meson
  base-devel
)
_commit=7d50a613306499f525033498ea922e3887ed7e9a  # tags/1.0.6^0
source=(
  "git+https://gitlab.gnome.org/GNOME/mm-common.git#commit=$_commit"
  https://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag
)
b2sums=('SKIP'
        'SKIP')

pkgver() {
  cd $pkgname
  git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}

prepare() {
  cd $pkgname
  cp ../libstdc++.tag doctags
}

build() {
  arch-meson $pkgname build
  meson compile -C build
}

check() {
  meson test -C build --print-errorlogs
}

package() {
  meson install -C build --destdir "$pkgdir"
}

# vim:set sw=2 sts=-1 et:
