# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=font-tlwg
pkgver=0.7.3
pkgrel=1
pkgdesc="The Thai TrueType fonts included here are Norasi and Garuda from the National Font project"
url="https://linux.thai.net/projects/fonts-tlwg"
arch="noarch"
license="LPPL-1.3c AND GPL-2.0-only WITH Font-exception-2.0"
options="!check" # No tests, only font files
source="https://linux.thai.net/pub/thailinux/software/fonts-tlwg/fonts/otf-tlwg-$pkgver.tar.xz"
builddir="$srcdir/otf-tlwg-$pkgver"

# backwards compat (<3.17)
provides="ttf-tlwg=$pkgver-r$pkgrel"
replaces="ttf-tlwg"

package() {
	install -Dm644 ./*.otf \
		-t "$pkgdir"/usr/share/fonts/tlwg
	install -Dm644 fontconfig/conf.avail/*.conf \
		-t "$pkgdir"/etc/fonts/conf.d/
}

sha512sums="
025a122157dba56bb1058b516fabdedc4ab83024dc722dfda46bd04eb02ce5f29cf13644d91ce378590b63fb9de085745c875f4a5b8c47173e493d9bb174ac20  otf-tlwg-0.7.3.tar.xz
"
