# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=ttf-cantarell
pkgver=0.0.25
pkgrel=0
pkgdesc="GNOME default font"
url="https://wiki.gnome.org/Projects/CantarellFonts"
arch="noarch"
license="Custom"
depends=""
makedepends=""
install=""
install_if="gnome-shell"
subpackages=""
source="https://download.gnome.org/sources/cantarell-fonts/${pkgver%.*}/cantarell-fonts-$pkgver.tar.xz"
builddir="$srcdir/cantarell-fonts-$pkgver"

# it's just data, no testsuites
options="!check"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="c09c3ecb3d4c50f613234398fabd327ca92b8abbc27082e8e98f2944f3dd9f0c2ff4c022ff5e5503a86e724bb8e2fbf6cd081f8a29e91b4209f5bf0e32168c3e  cantarell-fonts-0.0.25.tar.xz"
