# Description: Library to help create and query binary XML blobs
# URL: https://github.com/hughsie/libxmlb
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: gobject-introspection snowball

name=libxmlb
version=0.3.13
release=1
source=(https://github.com/hughsie/libxmlb/releases/download/$version/libxmlb-$version.tar.xz)

build() {
  meson setup $name-$version build \
    --prefix=/usr \
    --libexecdir=lib/$name \
    --buildtype=plain \
    --wrap-mode nodownload \
    -D b_lto=true \
    -D b_pie=true \
    -D stemmer=true \
    -D gtkdoc=false

  meson compile -C build
  DESTDIR=$PKG meson install -C build
}
