summaryrefslogblamecommitdiff
path: root/user/libmatroska/APKBUILD
blob: 85e5213699d70bde3a890ed860fadd9751937b62 (plain) (tree)
1
2
3
4


                                              
            


























                                                                           
                                                                                                                                                                       
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: 
pkgname=libmatroska
pkgver=1.5.0
pkgrel=0
pkgdesc="Library to parse Matroska files"
url="https://www.matroska.org/"
arch="all"
options="!check"  # No test suite.
license="LGPL-2.1+"
makedepends="libebml-dev>=1.3.3"
subpackages="$pkgname-dev"
source="https://dl.matroska.org/downloads/$pkgname/$pkgname-$pkgver.tar.xz"

build() {
	cd "$builddir"
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS"
	make
}

package() {
	cd "$builddir"
	make install DESTDIR="$pkgdir"
}

sha512sums="eb59b5afd9d510c2d6c7408b0053a261cee6669a9f5bbb1a939d98d96ac6c9b8f340691e95310268f59c954a1d9f72322fd0ec7b442a74c56cd2e2c22eb3a754  libmatroska-1.5.0.tar.xz"