#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=CImg
pkgver=1.5.1
pkgrel=1gv
arch=noarch
source=("http://downloads.sourceforge.net/project/cimg/CImg-$pkgver.zip")
docs=("readme.txt" "changes.txt" "licence*")
url=http://cimg.sourceforge.net/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"CImg (an open-source C++ toolkit for image processing)"
"CImg mainly consists in a (big) single header file CImg.h providing a"
"set of C++ classes and functions that can be used in your own sources,"
"to load/save, manage/process and display generic images. It's actually"
"a very simple toolkit for coding image processing stuffs in C++: Just"
"include the header file CImg.h, and you are ready to handle images in"
"your C++ programs."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	mkdir -p $startdir/pkg/usr/include/CImg
	cp CImg.h $startdir/pkg/usr/include/CImg
	( cd $startdir/pkg/usr/include/ ; ln -sf /usr/include/CImg/CImg.h . )
	mkdir -p $startdir/pkg/usr/share/CImg
	cp -a plugins/ $startdir/pkg/usr/share/CImg
}