# Maintainer: PktSurf <smlinux@pktsurf.in>
app=dmenu
version=4.5
build=1sml
homepage="http://tools.suckless.org/dmenu"
download="https://dl.suckless.org/tools/dmenu-$version.tar.gz"
desc="Dynamic menu for X"
requires="libxext libxinerama"

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

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

build() {
  make
  make install PREFIX=/ MANPREFIX=/share/man DESTDIR=$pkg

  cp LICENSE $pkgdocs/

  mkfinalpkg
}

sha512sums="
3a3acd9072b7e558e0f8b3bc69e4a63e9ac6918bac6b4c408c489ebc5c66542c5d29f249a06250f2e4cd9df81a4059aeef43153e793653f27a800193f4714b88  dmenu-4.5.tar.lz
"
