# Template file for 'libebml'
pkgname=libebml
version=1.3.0
revision=5
short_desc="Extensible Binary Meta Language library"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://dl.matroska.org/downloads/libebml/"
license="LGPL-2.1"
distfiles="http://dl.matroska.org/downloads/libebml/libebml-${version}.tar.bz2"
checksum="83b074d6b62715aa0080406ea84d33df2e44b5d874096640233a4db49b8096de"

do_build() {
	cd make/linux
	make CC="$CC" CXX="$CXX" LD="$LD" CFLAGS="$CFLAGS" ${makejobs}
}

do_install() {
	cd make/linux
	make prefix=${DESTDIR}/usr install
}

libebml-devel_package() {
	depends="libebml>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
	}
}
