description="For reading and writing GIFs as well as programs for converting and working with GIF files."
url="http://downloads.sourceforge.net/giflib/"

packager="spiky <spiky@nutyx.org>"
contributors="Pierre,Tnut"

makedepends=(xmlto imagemagick)

name=giflib
version=5.2.2

source=(https://sourceforge.net/projects/giflib/files/giflib-$version.tar.gz)

build() {
cd $name-$version
make
make PREFIX=/usr DESTDIR=$PKG install

rm -vf $PKG/usr/lib/libgif.a

find doc \( -name Makefile\* -o -name \*.1 \
         -o -name \*.xml \) -exec rm -v {} \;

install -v -dm755 $PKG/usr/share/doc/giflib-$version
cp -v -R doc/* \
$PKG/usr/share/doc/giflib-$version

}
