diff options
author | Britney Fransen <brfransen@gmail.com> | 2019-02-05 17:37:51 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2019-02-05 17:37:51 (GMT) |
commit | 44e83c2380d62397979db59372afb54dfde0b221 (patch) | |
tree | 2b0bcd27705822aebac6eaae6c2aaf939ee10996 /abs/extra | |
parent | 9dda36e8d2016ad70149dc94ba41b71f96dee71d (diff) | |
download | linhes_pkgbuild-44e83c2380d62397979db59372afb54dfde0b221.zip linhes_pkgbuild-44e83c2380d62397979db59372afb54dfde0b221.tar.gz linhes_pkgbuild-44e83c2380d62397979db59372afb54dfde0b221.tar.bz2 |
cantarell-fonts: initial inclusion
Diffstat (limited to 'abs/extra')
-rw-r--r-- | abs/extra/cantarell-fonts/PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
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) <jan.steffens@gmail.com> + +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: |