# Description: User interface library focusing on simplicity and minimalism
# URL: https://pwmt.org/projects/girara
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: libnotify
# Optional: json-glib libnotify

name=girara
version=0.4.0
release=1
source=(https://git.pwmt.org/pwmt/$name/-/archive/$version/$name-$version.tar.bz2)

build() {
  prt-get isinst json-glib && PKGMK_GIRARA+=' -D json=enabled' || PKGMK_GIRARA+=' -D json=disabled'
  prt-get isinst libnotify && PKGMK_GIRARA+=' -D notify=enabled' || PKGMK_GIRARA+=' -D notify=disabled'

  meson setup $name-$version build $PKGMK_GIRARA \
    --prefix=/usr \
    --sysconfdir=/etc \
    --buildtype=plain \
    --wrap-mode nodownload \
    -D b_lto=true \
    -D b_pie=true \
    -D docs=disabled \
    -D tests=disabled
  meson compile -C build
  DESTDIR=$PKG meson install -C build

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