# Maintainer: PktSurf <smlinux@pktsurf.in>
app=feh
version=3.1.1
build=1sml
homepage="https://feh.finalrewind.org"
homepage="https://feh.finalrewind.org/feh-$version.tar.bz2"
desc="Fast and lightweight image viewer for X"
requires="curl imlib2 libexif libxinerama libxt"

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

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

build() {
  CFLAGS+=" -include string.h" make PREFIX=/ exif=1 help=1 
  make install DESTDIR=$pkg \
    PREFIX=/ \
    man_dir=$pkg/share/man \
    example_dir="$pkg/share/doc/$app-$version/examples" \
    doc_dir="$pkg/share/doc/$app-$version"

  cp COPYING $pkgdocs/

  mkfinalpkg
}

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