aboutsummaryrefslogtreecommitdiffstats
path: root/community/libmatroska/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/libmatroska/APKBUILD')
-rw-r--r--community/libmatroska/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/libmatroska/APKBUILD b/community/libmatroska/APKBUILD
new file mode 100644
index 0000000000..e8a0f46d9a
--- /dev/null
+++ b/community/libmatroska/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer: Timo Teräs <timo.teras@iki.fi>
+pkgname=libmatroska
+pkgver=1.5.2
+pkgrel=1
+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.9"
+subpackages="$pkgname-dev"
+source="https://dl.matroska.org/downloads/libmatroska/libmatroska-$pkgver.tar.xz"
+
+build() {
+ 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=None \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ $CMAKE_CROSSOPTS
+ make
+}
+
+package() {
+ make install DESTDIR="$pkgdir"
+}
+
+sha512sums="122b71b91ae89e2a7cc89db17655a006248d58f18d913b4f9ffc885aef7e39681a3a16eed43cd8ecd949c570a939007797c79829f5ee87d08562aee3f0224ba2 libmatroska-1.5.2.tar.xz"