| Name |
woff2 |
| Description |
Web Open Font Format 2 reference implementation |
| Version |
1.0.2-6 |
| Package Base |
woff2 |
| Homepage |
https://github.com/google/woff2 |
| Maintainers |
['Jan Alexander Steffens (heftig) <heftig@archlinux.org>'] |
| Contributors |
[] |
| Distro-repo |
https://gitlab.archlinux.org/archlinux/packaging/packages/woff2 |
| Sources |
['0001-HACK-Install-binaries.patch', 'git+https://github.com/google/woff2#tag=v1.0.2'] |
| Dependencies |
['brotli', 'gcc-libs', 'glibc'] |
| Optional-Dependencies |
[] |
| Build-Dependencies |
['cmake', 'git', 'ninja'] |
| Provides |
['libwoff2common.so', 'libwoff2dec.so', 'libwoff2enc.so'] |
| Builddate |
14-05-2025 01:44:26 |
| Architecture |
x86_64 |
| Distro-Version |
|
| Licenses |
['MIT'] |
| Hash |
febf33aafe2912fb8ba9898fad648b4ef97f03558e2a50460949fd5376c5d6db |
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
pkgname=woff2
pkgver=1.0.2
pkgrel=6
pkgdesc="Web Open Font Format 2 reference implementation"
url="https://github.com/google/woff2"
arch=(x86_64)
license=(MIT)
depends=(
brotli
gcc-libs
glibc
)
makedepends=(
cmake
git
ninja
)
provides=(libwoff2{common,dec,enc}.so)
source=(
"git+$url#tag=v$pkgver"
0001-HACK-Install-binaries.patch
)
b2sums=('b25360f1627b64465715b4a3efc616ee592f0f329e6e25f00320c127d7bd3a040251a44e68673608ae67656c5b64a48d13ec20fb8f06d125be41c326c186109e'
'b42fba4cd444210eae198cca9a9dc537e3b8698b2cd8657d10d7ffcecebc642657cd615fbd9656b16229497cd7b9b5ee3f4a12dd9fa88ff70ea31bda281b46a4')
prepare() {
cd woff2
# Fix build with GCC 15+
git cherry-pick -n 08ece7871775c0d7bf4fdff64b961cdc256adf6c
# Install binaries
git apply -3 ../0001-HACK-Install-binaries.patch
}
build() {
local cmake_options=(
-D CMAKE_BUILD_TYPE=None
-D CMAKE_INSTALL_LIBDIR=/usr/lib
-D CMAKE_INSTALL_PREFIX=/usr
-D CMAKE_POLICY_VERSION_MINIMUM=3.5
)
cmake -S woff2 -B build -G Ninja "${cmake_options[@]}"
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 woff2/LICENSE
}
# vim:set sw=2 sts=-1 et: