opt/woff2/Pkgfile

21 lines
547 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
# Maintainer: Danny Rawlins, crux at romster dot me
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
2020-08-31 11:38:59 +02:00
release=2
2018-04-02 07:09:29 +02:00
source=(https://github.com/google/$name/archive/v$version/$name-v$version.tar.gz)
build() {
2020-08-31 11:38:59 +02:00
sed -i 's/NOT BUILD_SHARED_LIBS/TRUE/' $name-$version/CMakeLists.txt
2018-04-02 07:09:29 +02:00
2020-08-31 11:38:59 +02:00
cmake -S$name-$version -Bbuild -GNinja \
2018-04-02 07:09:29 +02:00
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR="/usr/lib"
2020-08-31 11:38:59 +02:00
cmake --build build
DESTDIR=$PKG cmake --install build
2018-04-02 07:09:29 +02:00
}