OCaml 4.13.1 rebuild
[arch-packages.git] / woff2 / trunk / PKGBUILD
blobe2c1d1eb250e60ff85c0d29df4e16bea593d8ffc
1 # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
3 pkgname=woff2
4 pkgver=1.0.2
5 pkgrel=3
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)
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 $pkgname
20   # Install binaries
21   sed -i 's/NOT BUILD_SHARED_LIBS/TRUE/' CMakeLists.txt
24 build() {
25   cmake -H$pkgname -Bbuild \
26     -DCMAKE_INSTALL_PREFIX=/usr \
27     -DCMAKE_INSTALL_LIBDIR=/usr/lib
28   cmake --build build
31 package() {
32   DESTDIR="$pkgdir" cmake --build build --target install
33   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgname/LICENSE