app=feh
version=3.1.1
build=1sml
homepage="https://feh.finalrewind.org"
homepage="https://feh.finalrewind.org/feh-3.1.1.tar.bz2"
desc="Fast and lightweight image viewer for X"
requires="curl imlib2 libexif libxinerama libxt "

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

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

  CFLAGS="$CFLAGS -D_GNU_SOURCE -include string.h" \
  make PREFIX="/" \
  exif=1 help=1

  make install DESTDIR=$pkg PREFIX="/" \
   man_dir=$pkg/share/man \
   doc_dir=$pkg/doc/$app-$version \
   example_dir=$pkg/doc/$app-$version/examples

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
b1a20463c9c54212f51af0af98d762dc1d1c774105c69b9c21a04b3835b817af47a5efd1c2ff741cc596c53844d09c20c979d606a82a1915aa4ad2cdf2a3fca4  feh-3.1.1.tar.lz
"
