archrelease: copy trunk to extra-x86_64
[arch-packages.git] / woff2 / trunk / PKGBUILD
blob780783c7a57f838f1b1c7f252e9301d84b3204be
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 _commit=1bccf208bca986e53a647dfe4811322adb06ecf8  # tags/v1.0.2
14 source=("git+$url#commit=$_commit")
15 sha512sums=('SKIP')
17 prepare() {
18   cd woff2
20   # Install binaries
21   sed -i 's/NOT BUILD_SHARED_LIBS/TRUE/' CMakeLists.txt
24 build() {
25   cmake -S woff2 -B build -G Ninja \
26     -DCMAKE_INSTALL_PREFIX=/usr \
27     -DCMAKE_INSTALL_LIBDIR=/usr/lib \
28     -DCMAKE_BUILD_TYPE=None
29   cmake --build build
32 package() {
33   DESTDIR="$pkgdir" cmake --install build
34   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 woff2/LICENSE