#Packager: Shador <futur~DOT~andy~AT~googlemail.com>

pkgname=vcdimager
pkgver=0.7.24
pkgrel=1ab
source=("ftp://ftp.informatik.rwth-aachen.de/pub/gnu/vcdimager/vcdimager-${pkgver}.tar.gz")
sourcetemplate="http://gaia.homelinux.org/salix/slkbuilds/$pkgname/"
docs=("readme" "install" "copying" "changelog*" "authors" "news" "todo"
      "bugs" "faq" "hacking" "thanks")
url='http://www.gnu.org/software/vcdimager/'

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"vcdimager (a (Super) Video CD formatting/pre-master/extraction tool)"
"GNU VCDImager is a program for making Video CD (and Super Video CD,"
"a.k.a. SVCD) images out of MPEG movie files. The images it creates are"
"ready to use with programs which understand BIN/CUE images, such as"
"cdrdao. GNU VCDRip allows for reversing the process, ripping mpeg"
"tracks from (Super) Video CDs."
)


build() {
	set -e

	cd $startdir/src/$pkgname-$pkgver

	./configure \
		--prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--mandir=/usr/man \
		--docdir=/usr/doc/$pkgname-$pkgver/ \
		--with-cli-frontend \
		--with-xml-frontend \
		--disable-static \
		--build=$arch-slackware-linux || return 1
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg || return 1

	set +e
}