| 1 | maintainer="team/gnome <[email protected]>" |
| 2 | pkgname=adwaita-fonts |
| 3 | pkgver=51.0 |
| 4 | pkgrel=0 |
| 5 | pkgdesc="The typefaces for GNOME" |
| 6 | url="https://gitlab.gnome.org/GNOME/adwaita-fonts" |
| 7 | arch="noarch" |
| 8 | license="GPL-3.0-or-later" |
| 9 | makedepends="meson" |
| 10 | subpackages="$pkgname-sans $pkgname-mono" |
| 11 | depends="$subpackages" |
| 12 | provides="font-adwaita" |
| 13 | source="https://download.gnome.org/sources/adwaita-fonts/${pkgver%%.*}/adwaita-fonts-$pkgver.tar.xz" |
| 14 | options="!check" # no tests |
| 15 | |
| 16 | build() { |
| 17 | abuild-meson \ |
| 18 | . output |
| 19 | meson compile -C output |
| 20 | } |
| 21 | |
| 22 | check() { |
| 23 | meson test --print-errorlogs -C output |
| 24 | } |
| 25 | |
| 26 | package() { |
| 27 | DESTDIR="$pkgdir" meson install --no-rebuild -C output |
| 28 | } |
| 29 | |
| 30 | sans() { |
| 31 | pkgdesc="$pkgdesc (Sans)" |
| 32 | depends= |
| 33 | amove usr/share/fonts/Adwaita/AdwaitaSans-*.ttf |
| 34 | } |
| 35 | |
| 36 | mono() { |
| 37 | pkgdesc="$pkgdesc (Mono)" |
| 38 | depends= |
| 39 | amove usr/share/fonts/Adwaita/AdwaitaMono-*.ttf |
| 40 | } |
| 41 | |
| 42 | sha512sums=" |
| 43 | 43c48869594e14390e72d10f4b3a98510b369307cc5e546d5b2f89e48ceae340a5fa2cc1f6e0364307f3da8d735f101e879b9b44f55ff62a8927aa3f02dba4a0 adwaita-fonts-51.0.tar.xz |
| 44 | " |