blob: 5ffb5b8d60a7ac198798a3b3d2715b4f7801b597 (
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
|
# Maintainer: Jan Sonntag <jaso35 at gmail dot com>
pkgname=cantarell-static-fonts
_pkgname=cantarell-fonts
pkgver=0.303.1
pkgrel=3
pkgdesc="Humanist sans serif font - static fonts"
url="https://gitlab.gnome.org/GNOME/cantarell-fonts"
arch=(any)
provides=(cantarell-fonts)
conflicts=(cantarell-fonts)
license=(custom:SIL)
makedepends=(meson appstream-glib python)
source=("https://download.gnome.org/sources/${_pkgname}/${pkgver:0:5}/${_pkgname}-$pkgver.tar.xz"
"only_remove_overlaps_with_pathops_if_available.patch")
sha256sums=('f9463a0659c63e57e381fdd753cf1929225395c5b49135989424761830530411'
'5ebb937d0583773ec383537db8f5d3891f9c8fb7d1b5a9d8f1d16219e17858c8')
prepare() {
cd "$_pkgname-$pkgver"
patch --forward --strip=1 --input="${srcdir}/only_remove_overlaps_with_pathops_if_available.patch"
}
build() {
python -m venv venv
source venv/bin/activate
pip install pip-tools
pip-compile --upgrade $_pkgname-$pkgver/requirements.in
pip install -r $_pkgname-$pkgver/requirements.txt
arch-meson $_pkgname-$pkgver build -D buildstatics=true -D buildvf=false
meson compile -C build
}
package() {
meson install -C build --destdir "$pkgdir"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $_pkgname-$pkgver/COPYING
}
|