#Maintainer: Thorsten Muehlfelder <thenktor(at)gmx.de>

#Mandatory
pkgname=requant
pkgver=2004
pkgrel=1tm
arch=x86_64
source=("http://www.xeatre.tv/community/burn/contrib/M2VRequantizer.tar.gz")
url="http://www.metakine.com/products/dvdremaster/modules.html"
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname - Tool to requantize mpeg2 videos"
"requant reduces the size of mpeg2 videos without decoding and encoding"
"them again."
"It is often used by VDR related tools and is also known as"
"M2VRequantiser or M2VRequantizer."
)

build() {
	cd $startdir/src/M2VRequantizer
	echo "gcc -c ${CFLAGS} main.c -o requant.o"
	gcc -c ${CFLAGS} main.c -o requant.o
	echo "gcc ${CFLAGS} requant.o -o requant -lm"
	gcc ${CFLAGS} requant.o -o requant -lm
	mkdir -p ${startdir}/pkg/usr/bin/
	install -m 755 requant ${startdir}/pkg/usr/bin/
}


