# Maintainer: PktSurf <smlinux@pktsurf.in>
app=xwd
version=1.0.7
build=1sml
homepage="https://xorg.freedesktop.org/"
download="https://xorg.freedesktop.org/archive/individual/app/xwd-$version.tar.bz2"
desc="X Window System image dumping utility"
requires="libxkbfile libxt"

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

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

build() {
  ./configure \
    --prefix=

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
84181f9f40be754ddeac3919a5357553d3c9473004371327118d4dff636a0cfd4c23f54ce8fcbb5c87f801b3837194dc8800fba10907380800eb0e328b2e795e  xwd-1.0.7.tar.lz
"
