### this file is sourced not run
PKGVER=5.1.4
PKGBUILD=1
PKGARCH=x86_64

# source: post BLFS 8.2 2018-06-01
TARBALL=giflib-$PKGVER.tar.bz2
MD5SUM=2c171ced93c0e83bb09e6ccad8e3ba2b
SRC_URL=http://downloads.sourceforge.net/giflib/$TARBALL
BUNDLE=

SLACKREQ='libX11'
SLACKDESC="giflib: giflib $PKGVER (GIF image library)  
giflib:  
giflib: The giflib package contains libraries for reading and writing GIFs as 
giflib: well as programs for converting and working with GIF files. The 
giflib: libraries are useful for any graphics program wishing to deal with GIF 
giflib: files while the programs are useful for conversion purposes as well as 
giflib: cleaning up images.  
giflib: 
giflib: 
giflib: 
giflib:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/giflib*
	#sed -i "s/all: allhtml/all:/" doc/Makefile.in && # disable doc build
	CONFFLAGS="$CONFFLAGS --disable-static" &&
	pkg_build_autoconf &&
	pkg_build_slackdesc &&

	# docs
	find doc \( -name Makefile\* -o -name \*.1 \
			 -o -name \*.xml \) -exec rm -v {} \; &&
	install -v -dm755 /usr/share/doc/giflib-$PKGVER &&
	cp -v -R doc/* /usr/share/doc/giflib-$PKGVER
}


