opt/woff2/Pkgfile

25 lines
685 B
Plaintext
Raw Normal View History

2018-04-02 07:09:29 +02:00
# Description: Web Open Font Format 2 reference implementation
# URL: https://github.com/google/woff2
2023-08-19 09:42:17 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
2020-08-31 11:38:59 +02:00
# Depends on: brotli
2018-04-02 07:09:29 +02:00
name=woff2
version=1.0.2
2023-08-19 09:42:17 +02:00
release=3
2018-04-02 07:09:29 +02:00
source=(https://github.com/google/$name/archive/v$version/$name-v$version.tar.gz)
build() {
2023-08-19 09:42:17 +02:00
sed -i 's/NOT BUILD_SHARED_LIBS/TRUE/' $name-$version/CMakeLists.txt
2018-04-02 07:09:29 +02:00
2023-08-19 09:42:17 +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" \
-Wno-dev
2018-04-02 07:09:29 +02:00
2023-08-19 09:42:17 +02:00
cmake --build build
DESTDIR=$PKG cmake --install build
2018-04-02 07:09:29 +02:00
}