blob: 70c5b812c9e6d81ed0128449f9c9d6fa2c2a8423 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Daniel Eklöf <daniel at ekloef dot se>
GRAPHEME_SHAPING=enabled # auto|disabled|enabled
RUN_SHAPING=enabled # auto|disabled|enabled
pkgname=fcft
pkgver=2.5.0 # Don’t forget to update CHANGELOG.md
pkgrel=1
pkgdesc="Simple library for font loading and glyph rasterization using FontConfig, FreeType and pixman."
arch=('x86_64' 'aarch64')
url=https://codeberg.org/dnkl/${pkgname}
license=(mit)
depends=('freetype2' 'fontconfig' 'pixman')
makedepends=('meson' 'ninja' 'scdoc' 'tllist')
checkdepends=('check' 'ttf-dejavu')
changelog=CHANGELOG.md
source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz)
sha256sums=('58663c684f04154674c52551daa604618e0bb3db6c62492b06b13768fb4f4b3c')
if [[ ${RUN_SHAPING} == enabled ]]; then
depends+=('harfbuzz' 'libutf8proc')
elif [[ ${GRAPHEME_SHAPING} == enabled ]]; then
depends+=('harfbuzz')
fi
build() {
cd ${pkgname}
meson \
--prefix=/usr \
--buildtype=release \
-Dgrapheme-shaping=${GRAPHEME_SHAPING} \
-Drun-shaping=${RUN_SHAPING} \
. build
ninja -C build
}
check() {
cd ${pkgname}
ninja -C build test
}
package() {
cd ${pkgname}
DESTDIR="${pkgdir}/" ninja -C build install
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm 644 unicode/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.unicode"
}
|