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

pkgname=imagination
pkgver=3.0
pkgrel=2gv
source=(http://downloads.sourceforge.net/project/imagination/imagination/3.0/imagination-3.0.tar.gz)
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://imagination.sourceforge.net

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"imagination (a lightweight and simple DVD slideshow maker"
"Imagination is a lightweight and simple DVD slide show maker written"
"in C language and built with the GTK+2 toolkit. Imagination has been"
"designed from the ground up to be fast, light and easy-to-use. It"
"requires the ffmpeg encoder to produce the movie file and libsox to"
"handle the audio."
)


build() {
	cd $startdir/src/$pkgname-$pkgver

	# Why are the transitions disabled by default?
	sed -i "s/#define PLUGINS_INSTALLED 0/#define PLUGINS_INSTALLED 1/" src/support.h

	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --build=$arch-slackware-linux
	make || return 1
	make install DESTDIR=$startdir/pkg
}