# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
setvar pkgname = 'libebml'
setvar pkgver = '1.3.5'
setvar pkgrel = '0'
setvar pkgdesc = ""a C++ library to parse Extensible Binary Meta-Language files""
setvar url = ""http://www.matroska.org/""
setvar arch = ""all""
setvar license = ""LGPL""
setvar depends = """"
setvar depends_dev = """"
setvar makedepends = "$depends_dev"
setvar install = """"
setvar subpackages = ""$pkgname-dev""
setvar source = ""http://dl.matroska.org/downloads/$pkgname/$pkgname-$pkgver.tar.xz""
setvar options = ""!check""

setvar _builddir = ""$srcdir"/$pkgname-$pkgver"
proc prepare {
	local i
	cd $_builddir
	for i in $source {
		case (i) {
		*.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1}
		}
	}
}

proc build {
	cd $_builddir
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		|| return 1
	make || return
}

proc package {
	cd $_builddir
	make install DESTDIR="$pkgdir"
}

setvar sha512sums = ""cdf05015724919b19281bf99c562bb7e0bdf16990da274010f664ff316b6ce95ecbeaa1e479f03505281a7f45d5796aee6e7750a9e1c0596b630911d220dca24  libebml-1.3.5.tar.xz""