# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libnotify
version=0.7.7
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() {
  ./configure \
    --prefix="" \
    --enable-static=no \
    --enable-shared=yes \
    --disable-gtk-doc \
    --disable-gtk-doc-html \
    --disable-gtk-doc-pdf

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
0765c5851742e54846fd0e12b4a8bcc045c5a5cfbcac70f07f62d91e40d480ca817223d1326dbd50d4ee1e3fb7abb31daacebff5bb233874765cca2d01370dc1  libnotify-0.7.7.tar.lz
"
