app=xsetroot
version=1.1.2
build=1sml
homepage="https://xorg.freedesktop.org/"
download="https://xorg.freedesktop.org/archive/individual/app/xsetroot-$version.tar.bz2"
desc="Classic X utility to set your root window background to a given pattern or color"
requires="libxmu libxcursor libx11"

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

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

  ./configure \
    --prefix="" \
    $builddist

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
d3828e2c200a92b5fcd0f1b1a16c4c9ce3356e945dd4df2e16637b7a09dc62879a7e7942a32533e2ed8ffca6a50e1b4798f4b608e737396de72fb36beb8c0229  xsetroot-1.1.2.tar.lz
"
