mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-09 01:04:38 +02:00
meson 1.7.0 and later don't include test build targets in the default build target. With --no-rebuild the test targets aren't build at all. Removing --no-rebuild shouldn't cause any false rebuilds since the files aren't changed between the build() and check() step. Fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/16891 Ref https://github.com/mesonbuild/meson/pull/10413
43 lines
1,023 B
Text
43 lines
1,023 B
Text
# Maintainer: Alex McGrath <amk@amk.ie>
|
|
pkgname=fcft
|
|
pkgver=3.3.1
|
|
pkgrel=0
|
|
pkgdesc="Simple library for font loading and glyph rasterization using FontConfig, FreeType and pixman"
|
|
url="https://codeberg.org/dnkl/fcft"
|
|
license="MIT"
|
|
arch="all"
|
|
makedepends="
|
|
meson
|
|
scdoc
|
|
fontconfig-dev
|
|
freetype-dev
|
|
harfbuzz-dev
|
|
pixman-dev
|
|
tllist-dev
|
|
utf8proc-dev
|
|
"
|
|
checkdepends="check-dev font-dejavu font-noto-emoji" # tests require a font to be installed
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://codeberg.org/dnkl/fcft/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/fcft"
|
|
|
|
build() {
|
|
abuild-meson \
|
|
-Db_lto=true \
|
|
-Dsvg-backend=nanosvg \
|
|
-Dtest-text-shaping=true \
|
|
. output
|
|
meson compile -C output
|
|
}
|
|
|
|
check() {
|
|
meson test --print-errorlogs -C output
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
}
|
|
|
|
sha512sums="
|
|
408f1f19812c0b2efe07d112fa2b0a17010b767919565194c2b46a7284baf41509b3dceedb2ef24ef1977fb174c2591ae59c599092ad10d016cf454e26381c88 fcft-3.3.1.tar.gz
|
|
"
|