- # Maintainer: garion < garion @ mailoo.org >
- pkgname=mkvalidator
- pkgver=0.4.2
- pkgrel=3
- pkgdesc="Validator for MKV files"
- arch=('armv6h' 'i686' 'x86_64')
- url="http://www.matroska.org/downloads/$pkgname.html"
- license=('BSD')
- depends=('libebml' 'libmatroska')
- options=(!makeflags)
- source=(http://sourceforge.net/projects/matroska/files/$pkgname/$pkgname-$pkgver.tar.bz2/download?use_mirror=autoselect)
- md5sums=('3e40952681941f40e943b328343f6e78')
- if [ $CARCH = "i686" ]; then
- _gcc_linux="gcc_linux"
- elif [ $CARCH = "x86_64" ]; then
- _gcc_linux="gcc_linux_x64"
- elif [ $CARCH = "armv6h" ]; then
- _gcc_linux="gcc_linux_arm"
- fi
- build(){
- cd $srcdir/$pkgname-$pkgver
- if [ $CARCH = "armv6h" ]; then
- find ./corec/tools/coremake/ -type f -exec sed -i "s/arm-none-linux-gnueabi-//g" {} \;
- fi
- ./configure
- make -C $pkgname
- }
- package(){
- cd $srcdir/$pkgname-$pkgver
- install -d $pkgdir/usr/bin/
- install -m755 release/$_gcc_linux/$pkgname $pkgdir/usr/bin/
- }
mkvalidator new PKGBUILD with armv6h support