#Maintainer: Thorsten Muehlfelder <thenktor@gmx.de>

#Mandatory
pkgname=vamps
pkgver=0.99.2
pkgrel=1tm
arch=i486
source=("http://mesh.dl.sourceforge.net/sourceforge/vamps/$pkgname-$pkgver.tar.gz")
url="http://vamps.sourceforge.net/"
docs=('INSTALL' 'COPYING')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname - Video-DVD backup tool"
"Vamps was written to make cheap backups of DVDs under Linux. Back in"
"2003 Metakine published the source code of their M2Requantiser module."
"The idea was to make use of this great piece of software to create a"
"transcoder for Linux for shrinking the content of a DVD9. This would"
"enable backups on cheap single layer DVD-Rs. The Metakine requantizer"
"is pretty fast and so Vamps was designed not to break this outstanding"
"performance."
)

build() {
	cd $startdir/src/${pkgname}-${pkgver}
	sed -i 's°^PREFIX\ *?= /usr/local°PREFIX\ ?=\ /usr°' vamps/Makefile
	sed -i 's°^PREFIX\ *?= /usr/local°PREFIX\ ?=\ /usr°' play_cell/Makefile
	make
	mkdir -p -m 755 $startdir/pkg/usr/bin
	install -m 755 vamps/vamps $startdir/pkg/usr/bin
	install -m 755 play_cell/play_cell $startdir/pkg/usr/bin
}