summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f5ba642ce8773ea99a41ce40d436d2db23f2846e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
# Contributor: garion < garion @ mailoo.org >

pkgname=mkvalidator
pkgver=0.5.2
pkgrel=1
pkgdesc="Validator for MKV files"
arch=('x86_64')
url='http://www.matroska.org/downloads/mkvalidator.html'
license=('BSD')
source=("http://sourceforge.net/projects/matroska/files/mkvalidator/mkvalidator-${pkgver}.tar.bz2")
sha1sums=('cd702e87568580d5db4184e64c19cd16eccb5263')
options=(!makeflags)

prepare() {
  cd "mkvalidator-${pkgver}"

  gcc ${CFAGS} -o coremake corec/tools/coremake/coremake.c

  sed "s|/usr/local|${pkgdir}/usr|g" -i corec/tools/coremake/gcc_mak.inc

  ./coremake gcc_linux_x64
}

build(){
  make -C "mkvalidator-${pkgver}/mkvalidator"
}

package(){
  mkdir -p "${pkgdir}/usr/bin"
  make -C "mkvalidator-${pkgver}/mkvalidator" install
}