2020-11-12 17:13:16 +01:00
|
|
|
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
|
|
|
# Contributor: Jan de Groot <jgc@archlinux.org>
|
|
|
|
|
|
|
|
_pkgname=harfbuzz
|
2022-03-07 10:50:48 +01:00
|
|
|
pkgname=static-compat-$_pkgname
|
2024-05-06 16:41:51 +02:00
|
|
|
pkgver=8.4.0
|
2020-11-12 17:13:16 +01:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="OpenType text shaping engine"
|
2024-05-06 16:41:51 +02:00
|
|
|
url="https://harfbuzz.github.io/"
|
2020-11-12 17:13:16 +01:00
|
|
|
arch=(x86_64)
|
|
|
|
license=(MIT)
|
2022-03-07 10:50:48 +01:00
|
|
|
depends=(static-compat-glib2 static-compat-freetype2 static-compat-graphite)
|
|
|
|
makedepends=(gobject-introspection ragel git python static-compat-meson)
|
2020-11-12 17:13:16 +01:00
|
|
|
checkdepends=(python-fonttools python-setuptools)
|
|
|
|
options=(!emptydirs !docs staticlibs)
|
2024-05-06 16:41:51 +02:00
|
|
|
source=("git+https://github.com/harfbuzz/harfbuzz?signed#tag=$pkgver")
|
|
|
|
b2sums=('19f25dbf2ba6d90fdbb4ecb1039c8d0d72c55cff3dc3b30d6b75b626c15bf28a2118495837d80b7f622f0929dd7d4a07b5526963e1204bb9c90bc9f976c26977')
|
|
|
|
validpgpkeys=(
|
|
|
|
053D20F17CCCA9651B2C6FCB9AB24930C0B997A2 # Khaled Hosny <khaled@aliftype.com> (@khaledhosny)
|
|
|
|
9F377DDB6D3153A48EB3EB1E63CC496475267693 # Caleb Maclennan <caleb@alerque.com> (@alerque)
|
|
|
|
2277650A4E8BDFE4B7F6BE419FEE04E5D3531115 # Ebrahim Byagowi <ebrahim@gnu.org> (@ebraminio)
|
|
|
|
EACF64F53455E2771BA661A4803B21859F015E4E # Behdad Esfahbod <behdad@behdad.org> (@behdad)
|
|
|
|
)
|
2020-11-12 17:13:16 +01:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd harfbuzz
|
|
|
|
git describe --tags | sed 's/-/+/g'
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd harfbuzz
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2022-03-07 10:50:48 +01:00
|
|
|
source static-compat-environment
|
2020-11-12 17:13:16 +01:00
|
|
|
export PATH=$PWD:$PATH
|
|
|
|
printf '#!/usr/bin/bash\nexec /usr/bin/pkg-config --static "$@"\n' > pkg-config
|
|
|
|
chmod +x pkg-config
|
2023-07-13 01:17:49 +02:00
|
|
|
# disable tools and tests that would run into linker errors
|
2020-11-12 17:13:16 +01:00
|
|
|
echo '' > harfbuzz/util/meson.build
|
2023-07-13 01:17:49 +02:00
|
|
|
echo '' > harfbuzz/test/api/meson.build
|
|
|
|
echo '' > harfbuzz/test/fuzzing/meson.build
|
|
|
|
echo '' > harfbuzz/test/threads/meson.build
|
2022-03-07 10:50:48 +01:00
|
|
|
echo '' > harfbuzz/test/shape/meson.build
|
2020-11-12 17:13:16 +01:00
|
|
|
echo '' > harfbuzz/test/subset/meson.build
|
2022-03-07 10:50:48 +01:00
|
|
|
static-compat-meson harfbuzz build \
|
2020-11-12 17:13:16 +01:00
|
|
|
-Dgraphite=enabled \
|
|
|
|
-Dcairo=disabled \
|
|
|
|
-Dintrospection=disabled \
|
|
|
|
-Dicu=disabled \
|
2022-03-07 10:50:48 +01:00
|
|
|
-Ddocs=disabled
|
2020-11-12 17:13:16 +01:00
|
|
|
meson compile -C build
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2022-03-07 10:50:48 +01:00
|
|
|
source static-compat-environment
|
2020-11-12 17:13:16 +01:00
|
|
|
mkdir -p tmp
|
|
|
|
TMPDIR="$PWD/tmp" meson test -C build --print-errorlogs
|
|
|
|
rm -r tmp
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-03-07 10:50:48 +01:00
|
|
|
source static-compat-environment
|
2020-11-12 17:13:16 +01:00
|
|
|
DESTDIR="$pkgdir" meson install -C build
|
|
|
|
|
2022-03-07 10:50:48 +01:00
|
|
|
# remove CMake config as it is broken for a static build (the pkgconfig file alone should be good enough)
|
|
|
|
rm -r "$pkgdir/$static_compat_prefix"/lib/cmake/harfbuzz/harfbuzz-config.cmake
|
|
|
|
|
2020-11-12 17:13:16 +01:00
|
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 harfbuzz/COPYING
|
|
|
|
}
|