# Description: GLib-based client library for the accounts database
# URL: https://gitlab.com/accounts-sso/libaccounts-glib
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: libxml2 python3-gobject vala

name=libaccounts-glib
version=1.27
release=1
source=(https://gitlab.com/accounts-sso/libaccounts-glib/-/archive/VERSION_$version/$name-VERSION_$version.tar.bz2)

build() {
  sed -i \
    -e '/docs/d' \
    -e '/tests/d' \
    $name-VERSION_$version/meson.build

  meson setup $name-VERSION_$version build \
    --prefix=/usr \
    --buildtype=plain \
    --wrap-mode nodownload \
    -D b_lto=true \
    -D b_pie=true
  meson compile -C build
  DESTDIR=$PKG meson install -C build
}
