contrib/libebml/Pkgfile

25 lines
769 B
Plaintext

# Description: A library for reading and writing files with the Extensible Binary Meta Language, a binary pendant to XML.
# URL: https://github.com/Matroska-Org/libebml
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: cmake
name=libebml
version=1.4.0
release=1
source=(https://dl.matroska.org/downloads/$name/$name-$version.tar.xz)
build() {
[[ -e /usr/bin/ninja ]] && PKGMK_LIBEBML_OPTIONS=' -GNinja'
cmake -S$name-$version -Bbuild $PKGMK_LIBEBML_OPTIONS \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
-Wno-dev \
-DBUILD_SHARED_LIBS=ON
cmake --build build
DESTDIR=$PKG cmake --install build
}