1. # Maintainer: garion < garion @ mailoo.org >
  2. pkgname=mkvalidator
  3. pkgver=0.4.2
  4. pkgrel=3
  5. pkgdesc="Validator for MKV files"
  6. arch=('armv6h' 'i686' 'x86_64')
  7. url="http://www.matroska.org/downloads/$pkgname.html"
  8. license=('BSD')
  9. depends=('libebml' 'libmatroska')
  10. options=(!makeflags)
  11. source=(http://sourceforge.net/projects/matroska/files/$pkgname/$pkgname-$pkgver.tar.bz2/download?use_mirror=autoselect)
  12. md5sums=('3e40952681941f40e943b328343f6e78')
  13. if [ $CARCH = "i686" ]; then
  14. _gcc_linux="gcc_linux"
  15. elif [ $CARCH = "x86_64" ]; then
  16. _gcc_linux="gcc_linux_x64"
  17. elif [ $CARCH = "armv6h" ]; then
  18. _gcc_linux="gcc_linux_arm"
  19. fi
  20. build(){
  21. cd $srcdir/$pkgname-$pkgver
  22. if [ $CARCH = "armv6h" ]; then
  23. find ./corec/tools/coremake/ -type f -exec sed -i "s/arm-none-linux-gnueabi-//g" {} \;
  24. fi
  25. ./configure
  26. make -C $pkgname
  27. }
  28. package(){
  29. cd $srcdir/$pkgname-$pkgver
  30. install -d $pkgdir/usr/bin/
  31. install -m755 release/$_gcc_linux/$pkgname $pkgdir/usr/bin/
  32. }

mkvalidator new PKGBUILD with armv6h support