1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
6 pkgdesc="Web Open Font Format 2 reference implementation"
7 url="https://github.com/google/woff2"
11 makedepends=(git cmake ninja)
12 provides=(libwoff2{common,dec,enc}.so)
14 _commit=1bccf208bca986e53a647dfe4811322adb06ecf8 # tags/v1.0.2
15 source=("git+$url#commit=$_commit")
22 sed -i 's/NOT BUILD_SHARED_LIBS/TRUE/' CMakeLists.txt
26 cmake -S woff2 -B build -G Ninja \
27 -DCMAKE_INSTALL_PREFIX=/usr \
28 -DCMAKE_INSTALL_LIBDIR=/usr/lib \
29 -DCMAKE_BUILD_TYPE=None
34 DESTDIR="$pkgdir" cmake --install build
35 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 woff2/LICENSE