summaryrefslogtreecommitdiff
path: root/user/libmatroska/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-21 03:11:13 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-21 03:11:13 -0500
commit41328727953b445d8504cb6e81aaaf5093bcc084 (patch)
tree75b2ac17c01887ca196ba81f2b85cbc09e0608d8 /user/libmatroska/APKBUILD
parent9bb6499854411bce029814bf4352e999e8a57c2c (diff)
downloadpackages-41328727953b445d8504cb6e81aaaf5093bcc084.tar.gz
packages-41328727953b445d8504cb6e81aaaf5093bcc084.tar.bz2
packages-41328727953b445d8504cb6e81aaaf5093bcc084.tar.xz
packages-41328727953b445d8504cb6e81aaaf5093bcc084.zip
user/libmatroska: pull in, fix, switch to CMake, bump to 1.4.9
Diffstat (limited to 'user/libmatroska/APKBUILD')
-rw-r--r--user/libmatroska/APKBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/user/libmatroska/APKBUILD b/user/libmatroska/APKBUILD
new file mode 100644
index 000000000..ea56219a2
--- /dev/null
+++ b/user/libmatroska/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer:
+pkgname=libmatroska
+pkgver=1.4.9
+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="281224b66ce7ef39daf0f186cda1144250e190b914e64f4f2524e8bf0170a3d18dbc50f204d4ca8d7eaffe183a61f96c92ba6ec4325bacb068272d62cdbcef33 libmatroska-1.4.9.tar.xz"