summaryrefslogtreecommitdiff
path: root/libebml/Pkgfile
blob: 38444aac4c8c00e060e77dbd1de3e647e9316d8c (plain)
    1 # Description: A library for reading and writing files with the Extensible Binary Meta Language, a binary pendant to XML.
    2 # URL: https://github.com/Matroska-Org/libebml
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: cmake
    5 
    6 name=libebml
    7 version=1.4.2
    8 release=1
    9 source=(https://dl.matroska.org/downloads/$name/$name-$version.tar.xz)
   10 
   11 build() {
   12 	[[ -e /usr/bin/ninja ]] && PKGMK_LIBEBML+=' -G Ninja'
   13 	cmake -S $name-$version -B build $PKGMK_LIBEBML \
   14 		-D CMAKE_INSTALL_PREFIX=/usr \
   15 		-D CMAKE_INSTALL_LIBDIR=lib \
   16 		-D CMAKE_BUILD_TYPE=Release \
   17 		-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
   18 		-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
   19 		-D BUILD_SHARED_LIBS=ON \
   20 		-Wno-dev
   21 
   22 	cmake --build build
   23 	DESTDIR=$PKG cmake --install build
   24 }

Generated by cgit