contrib/libebml/Pkgfile

23 lines
679 B
Plaintext
Raw Normal View History

2023-08-13 11:05:42 +02:00
# Description: A library for reading and writing files with the Extensible Binary Meta Language, a binary pendant to XML
2017-10-12 12:47:31 +02:00
# URL: https://github.com/Matroska-Org/libebml
2023-08-13 11:05:42 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
2008-02-13 21:08:48 +01:00
name=libebml
2022-10-09 13:15:30 +02:00
version=1.4.4
2008-02-13 21:08:48 +01:00
release=1
2017-10-12 12:47:31 +02:00
source=(https://dl.matroska.org/downloads/$name/$name-$version.tar.xz)
2008-02-13 21:08:48 +01:00
2010-12-14 14:12:38 +01:00
build() {
2023-08-13 11:05:42 +02:00
cmake -S $name-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-D BUILD_SHARED_LIBS=ON \
-Wno-dev
2015-04-22 15:59:00 +02:00
2023-08-13 11:05:42 +02:00
cmake --build build
DESTDIR=$PKG cmake --install build
2008-02-13 21:08:48 +01:00
}