From 44e83c2380d62397979db59372afb54dfde0b221 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Tue, 5 Feb 2019 17:37:51 +0000 Subject: cantarell-fonts: initial inclusion --- abs/extra/cantarell-fonts/PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 abs/extra/cantarell-fonts/PKGBUILD diff --git a/abs/extra/cantarell-fonts/PKGBUILD b/abs/extra/cantarell-fonts/PKGBUILD new file mode 100644 index 0000000..6a721d4 --- /dev/null +++ b/abs/extra/cantarell-fonts/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Jan Alexander Steffens (heftig) + +pkgname=cantarell-fonts +pkgver=0.111 +pkgrel=1 +epoch=1 +pkgdesc="Humanist sans serif font" +url="https://gitlab.gnome.org/GNOME/cantarell-fonts" +arch=(any) +license=(custom:SIL) +makedepends=(meson appstream-glib git) +_commit=9c0eb3dc8c0b2e0d5b9e4dfcd48ca1b9531baaa9 # tags/v0.111^0 +source=("git+https://gitlab.gnome.org/GNOME/cantarell-fonts.git#commit=$_commit") +sha256sums=('SKIP') + +pkgver() { + cd $pkgname + git describe --tags | sed 's/^v//;s/-/+/g' +} + +prepare() { + python -m venv venv + venv/bin/pip install fontmake psautohint + cd $pkgname +} + +build() { + PATH="$srcdir/venv/bin:$PATH" arch-meson $pkgname build + ninja -C build +} + +package() { + DESTDIR="$pkgdir" meson install -C build + install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgname/COPYING +} + +# vim:set ts=2 sw=2 et: -- cgit v0.12