# Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=libmatroska pkgver=1.5.1 pkgrel=0 pkgdesc="Extensible multimedia container format based on EBML" url="https://www.matroska.org" arch="all" options="!check" # Tests don't build; 'make check' target disabled by upstream license="LGPL-2.1-or-later" makedepends="cmake libebml-dev>=1.3.7" subpackages="$pkgname-dev" source="https://dl.matroska.org/downloads/$pkgname/$pkgname-$pkgver.tar.xz" build() { cd "$builddir" if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_C_FLAGS="$CFLAGS" \ ${CMAKE_CROSSOPTS} make } package() { cd "$builddir" make install DESTDIR="$pkgdir" } sha512sums="5c65b903abd2f42e2270749c0570b1c1f7d65f87d7eb6a3f5480af3cee6614c74b3566858f1afe3c71cdea6085c1a114e53b08bfb043691018ee7f23ce4b8ef2 libmatroska-1.5.1.tar.xz"