# Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=libmatroska pkgver=1.5.0 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="eb59b5afd9d510c2d6c7408b0053a261cee6669a9f5bbb1a939d98d96ac6c9b8f340691e95310268f59c954a1d9f72322fd0ec7b442a74c56cd2e2c22eb3a754 libmatroska-1.5.0.tar.xz"