### this file is sourced not run
PKGVER=0.99.2debian4
PKGBUILD=1
PKGARCH=x86_64

# source: james/debian
TARBALL=vamps_0.99.2.orig.tar.gz
MD5SUM=7d438185a2ae95ebb245472d9fa47d06
SRC_URL=http://ftp.de.debian.org/debian/pool/main/v/vamps/$TARBALL
BUNDLE=

SLACKREQ='libdvdread' # 
SLACKDESC='vamps: vamps 0.99.2debian4 (DVD-Video compressor)  
vamps:  
vamps: Vamps is a tool to recompress and modify the structure of a DVD. It 
vamps: reduces the size of DVD compliant MPEG2 program streams by selectively 
vamps: copying audio and subpicture tracks and by resizing the embedded 
vamps: elementary video stream. The shrink factor may be either specified for 
vamps: the video elementary stream only or for the video ES only or for the 
vamps: full PS.  
vamps: 
vamps: 
vamps:
'
SLACKSUG='libdvdcss'

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/vamps* &&
	zcat $CHROOT_DIR/tmp/pkg/vamps_0.99.2-4.diff.gz | patch -Np1 &&
	for p in $(cat debian/patches); do 
		patch -Np1 -i debian/patches/$p
	done
}

### default pkg_package
### default pkg_build
pkg_build() {
	cd /tmp/vamps*
	make PREFIX=/usr && make PREFIX=/usr install &&
	pkg_build_slackdesc
}
