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

pkgname=vcdimager
pkgver=0.7.23
pkgrel=1ab
#arch=i486
source=("ftp://ftp.gnu.org/gnu/vcdimager/vcdimager-0.7.23.tar.gz")
sourcetemplate="http://gaia.homelinux.org/salix/packages/$pkgname/$pkgver/"
docs=("readme" "install" "copying" "changelog*" "authors" "news" "todo" 
      "bugs" "faq" "hacking" "thanks" "videocd.dtd")
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
  JOBS=" -j$(($(getconf _NPROCESSORS_ONLN)*2)) "
  NUMJOBS="${NUMJOBS:-"${JOBS}"}"

  cd $startdir/src/$pkgname-$pkgver
  
  ./configure \
    --prefix=/usr \
    --libdir=/usr/lib${LIBDIRSUFFIX} \
    --localstatedir=/var \
    --sysconfdir=/etc \
    --mandir=/usr/man \
    --with-cli-frontend \
    --with-gui-frontend \
    --disable-static \
    --build=$arch-slackware-linux || return 1
  make $NUMJOBS || return 1
  make install DESTDIR=$startdir/pkg || return 1
  
  set +e
} 
