### this file is sourced not run
#build needs doxygen-1.8.7

PKGVER=2.28
TARBALL=feh-$PKGVER.tar.bz2
MD5SUM=861ec1db2c2222c79e49ca4e4bf3fae4
SRC_URL=https://feh.finalrewind.org/$TARBALL
BUNDLE=

SLACKDESC="feh: feh $PKGVER (image viewer)
feh: 
feh: fast and light Imlib2-based image viewer
feh: 
feh: 
feh: 
feh: 
feh: 
feh: 
feh: http://feh.finalrewind.org
feh: 
"
# http://software.jaos.org/git/slapt-get/plain/FAQ.html#slgFAQ19
SLACKREQ='imlib2
curl
libpng
libX11
libXinerama
libexif >= 0.6.21-x86_64-1'

# http://software.jaos.org/git/slapt-get/plain/FAQ.html#slgFAQ44
SLACKSUG='libjpeg-turbo ImageMagick'
# http://software.jaos.org/git/slapt-get/plain/FAQ.html#slgFAQ31
SLACKCON=

### default pkg_download
### default pkgـprepare
### default pkg_package
### build
pkg_build() {
 #Available flags:
 # * cam      (default 0) - install deprecated feh-cam and gen-cam-menu scripts
 # * curl     (default 1) - use libcurl to view http:// and similar images
 # * debug    (default 0) - debug build, enables --debug
 # * exif     (default 0) - Builtin EXIF tag display support
 # * help     (default 0) - include help text (refers to the manpage otherwise)
 # * stat64   (default 0) - Support CIFS shares from 64bit hosts on 32bit machines
 # * xinerama (default 1) - Support Xinerama/XRandR multiscreen setups

	cd /tmp/feh* &&
	sed -i -e 's/^Categories=.*/Categories=Graphics;/' share/applications/feh.pre &&
	PREFIX=/usr make curl=1 exif=1 help=1 xinerama=1 all install &&
	pkg_build_slackdesc
}

