aboutsummaryrefslogblamecommitdiffstats
path: root/community/libebml/APKBUILD
blob: 2d1139944c0a6efca7d67b1efba9c69e6b51b121 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                              
            
        
                                                                    
                              
          
                                  
                           
                   
                          
                                                                        
 
           


                      
         






                                                                                          
                                         

                                               
                                
            


           
                                      

 
                                                                                                                                                                   
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libebml
pkgver=1.4.1
pkgrel=0
pkgdesc="C++ library to parse Extensible Binary Meta-Language files"
url="https://www.matroska.org"
arch="all"
options="!check"  # No test suite.
license="LGPL-2.1-or-later"
makedepends="cmake"
subpackages="$pkgname-dev"
source="http://dl.matroska.org/downloads/libebml/libebml-$pkgver.tar.xz"

# secfixes:
#   1.3.6-r0:
#     - CVE-2019-13615

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="ddde4975546ba4214cd22db37992c2b5130a731da1b34e171cca8d7f39d981b9643a193d06be1a1e156b316e51419d1eb4c1cfe40511a52b245152e69a507e4b  libebml-1.4.1.tar.xz"