39 lines
1,004 B
Bash
39 lines
1,004 B
Bash
# Maintainer: Caleb Maclennan <caleb@alerque.com>
|
|
# Contributor: Daniel Eklöf <daniel at ekloef dot se>
|
|
|
|
pkgname=fcft
|
|
pkgver=3.0.1
|
|
pkgrel=2
|
|
pkgdesc='Simple library for font loading and glyph rasterization'
|
|
arch=(x86_64)
|
|
url=https://codeberg.org/dnkl/${pkgname}
|
|
license=(MIT)
|
|
depends=(fontconfig
|
|
freetype2
|
|
harfbuzz
|
|
libutf8proc
|
|
pixman)
|
|
makedepends=(meson
|
|
scdoc
|
|
tllist)
|
|
checkdepends=(ttf-dejavu)
|
|
provides=(libfcft.so)
|
|
options=(debug)
|
|
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
|
|
sha256sums=('0d9b9f3add24aef5efcf42a32e8ad0e50060e1441a491e04fff3d79a36a526ea')
|
|
|
|
build() {
|
|
arch-meson $pkgname build \
|
|
-Dgrapheme-shaping=enabled \
|
|
-Drun-shaping=enabled
|
|
}
|
|
|
|
check() {
|
|
meson test -C build
|
|
}
|
|
|
|
package() {
|
|
meson install -C build --destdir "$pkgdir"
|
|
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" "$pkgname/LICENSE"
|
|
install -Dm0644 "$pkgname/unicode/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.unicode"
|
|
}
|