# Maintainer: PktSurf <smlinux@pktsurf.in>
app=xfce4-whiskermenu-plugin
version=2.7.1
build=1sml
homepage="https://gottcode.org/xfce4-whiskermenu-plugin/"
download="https://gottcode.org/xfce4-whiskermenu-plugin/xfce4-whiskermenu-plugin-$version-src.tar.bz2"
desc="Alternate application launcher for Xfce"
requires="gtk3 garcon xfce4-panel"

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

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

build() {
  mkdir -p smbuild && cd smbuild
  cmake .. \
    -DCMAKE_INSTALL_PREFIX="" \
    -DCMAKE_INSTALL_LIBDIR=lib

  make
  make install DESTDIR=$pkg 

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
1a0ee8b7a641d7c6784d606c6081bc1589e3422b5fdab00d8440afe4ad3eba0ea536599a7c3e020433009e741d0421000765ff1717fcdd21b865261c3480e263  xfce4-whiskermenu-plugin-2.7.1.tar.lz
"
