OCaml 4.14.0 rebuild
[arch-packages.git] / woff2 / trunk / PKGBUILD
blob55feb48a0e550bcb4f88e9cb406309217812552e
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
3 pkgname=woff2
4 pkgver=1.0.2
5 pkgrel=4
6 pkgdesc="Web Open Font Format 2 reference implementation"
7 url="https://github.com/google/woff2"
8 arch=(x86_64)
9 license=(custom:MIT)
10 depends=(brotli)
11 makedepends=(git cmake ninja)
12 provides=(libwoff2{common,dec,enc}.so)
13 options=(debug)
14 _commit=1bccf208bca986e53a647dfe4811322adb06ecf8  # tags/v1.0.2
15 source=("git+$url#commit=$_commit")
16 sha512sums=('SKIP')
18 prepare() {
19   cd woff2
21   # Install binaries
22   sed -i 's/NOT BUILD_SHARED_LIBS/TRUE/' CMakeLists.txt
25 build() {
26   cmake -S woff2 -B build -G Ninja \
27     -DCMAKE_INSTALL_PREFIX=/usr \
28     -DCMAKE_INSTALL_LIBDIR=/usr/lib \
29     -DCMAKE_BUILD_TYPE=None
30   cmake --build build
33 package() {
34   DESTDIR="$pkgdir" cmake --install build
35   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 woff2/LICENSE