# Template file for 'Fonts-TLWG'
pkgname=Fonts-TLWG
version=0.7.3
revision=1
build_style=gnu-configure
configure_args="--with-ttfdir=/usr/share/fonts/TTF --with-otfdir=/usr/share/fonts/OTF
 --enable-ttf"
hostmakedepends="fontforge"
depends="font-util"
short_desc="Thai fonts TTF"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, Bitstream-Vera"
homepage="https://linux.thai.net/projects/fonts-tlwg"
distfiles="https://github.com/tlwg/fonts-tlwg/releases/download/v${version}/fonts-tlwg-${version}.tar.xz"
checksum=6e4eff904d8cb6618a48a00d659042b25fc1b21f189d44d79268ea2b6b46bb02
font_dirs="/usr/share/fonts/TTF"

post_install() {
	vlicense COPYING
}

Fonts-TLWG-otf_package() {
	short_desc="Thai fonts OTF"
	font_dirs="/usr/share/fonts/OTF"
	pkg_install() {
		vmove usr/share/fonts/OTF
	}
}
