summaryrefslogblamecommitdiff
path: root/user/libmatroska/APKBUILD
blob: 076e9a9e22c94cc92c99df2bdc139e9c020864ca (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                              
            




                                         
                                      


                                                                           




                                                     
                                           


            

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

build() {
	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() {
	make install DESTDIR="$pkgdir"
}

sha512sums="122b71b91ae89e2a7cc89db17655a006248d58f18d913b4f9ffc885aef7e39681a3a16eed43cd8ecd949c570a939007797c79829f5ee87d08562aee3f0224ba2  libmatroska-1.5.2.tar.xz"