updated on Thu Jan 12 16:09:17 UTC 2012
[aur-mirror.git] / y4mscaler / PKGBUILD
blob2a5636c3250b77df903031fb72ca0ca6944297d4
1 # Contributor: Tom K <tomk@runbox.com>
2 pkgname=y4mscaler
3 pkgver=9.0
4 pkgrel=2
5 pkgdesc="y4mscaler is a video scaler which operates on YUV4MPEG2 streams"
6 depends=('mjpegtools')
7 source=(http://www.mir.com/DMG/Software/$pkgname-$pkgver-src.tgz)
8 md5sums=('6b5d110aeacb22b865591e6203666195')
9 url="http://www.mir.com/DMG/Software/"
10 license="GPL"
12 build() {
13   mkdir -p $startdir/pkg/usr/{bin,man/man1}
15   cd $startdir/src/$pkgname-$pkgver
17   sed -i -e "s:-mcpu=$CARCH:-O2 -pipe:g" Makefile
18   sed -i -e 's:MJPEG_PREFIX = /usr/local:MJPEG_PREFIX = /usr:g' Makefile
20   make || return 1
22   cp y4mscaler $startdir/pkg/usr/bin
23   cp y4mscaler.1 $startdir/pkg/usr/man/man1
25   chmod 755 $startdir/pkg/usr/man/man1/y4mscaler.1