1 # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
6 pkgdesc="Web Open Font Format 2 reference implementation"
7 url="https://github.com/google/woff2"
11 makedepends=(git cmake)
12 provides=(libwoff2{common,dec,enc}.so)
13 _commit=1bccf208bca986e53a647dfe4811322adb06ecf8 # tags/v1.0.2
14 source=("git+$url#commit=$_commit")
21 sed -i 's/NOT BUILD_SHARED_LIBS/TRUE/' CMakeLists.txt
25 cmake -H$pkgname -Bbuild \
26 -DCMAKE_INSTALL_PREFIX=/usr \
27 -DCMAKE_INSTALL_LIBDIR=/usr/lib
32 DESTDIR="$pkgdir" cmake --build build --target install
33 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgname/LICENSE