# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libnotify
version=0.8.2
build=1sml
homepage="https://gitlab.gnome.org/GNOME/libnotify"
download="https://gitlab.gnome.org/GNOME/libnotify/-/archive/$version/libnotify-$version.tar.bz2"
desc="Library for sending desktop notifications"
requires="xmlto gdk-pixbuf"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  mkdir -p smbuild && cd smbuild
  meson .. --prefix=/ \
    -Dgtk_doc=false \
    -Dman=false

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
630662c5a317e2a405e078d278299f69fb8faafcec75d1231adddc0072165e8ed36fe12ea9734762a80683e6e63c4cadc7933f2846a9b4ad567b6c03a9315493  libnotify-0.8.2.tar.lz
"