# Description: Building blocks for modern GNOME applications
# URL: https://gitlab.gnome.org/GNOME/libadwaita
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: gtk4 libsass sassc wayland-protocols

name=libadwaita
version=1.3.4
release=1
source=(https://gitlab.gnome.org/GNOME/libadwaita/-/archive/$version/libadwaita-$version.tar.bz2)

build() {
  prt-get isinst vala || PKGMK_LIBADWAITA+=' -D vapi=false'

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

  rm -r $PKG/usr/share/locale
}
