# Template file for 'texlive-fontsextra'
pkgname=texlive-fontsextra
version=2020.55407
revision=1
archs="noarch"
build_style="texmf"
depends="texlive-core"
short_desc="TeX Live - All sorts of extra fonts"
maintainer="fosslinux <fosslinux@aussies.space>"
license="GPL-2.0-or-later"
homepage="http://tug.org/texlive/"
distfiles="https://sources.archlinux.org/other/texlive/${pkgname}-${version}-src.zip"
checksum=25e1060c699f09e02924bf27902b162d7af5a6cc2d0c898f83c09ca0928d9060

pre_build() {
	# Commands below are taken from `mksource` function of:
	# https://git.parabola.nu/abslibre.git/tree/libre/texlive-fontsextra/PKGBUILD

	# remove nonfree packages
	# no specific free license
	rm -v ogham.tar.xz
}

post_build() {
	# Commands below are taken from `prepare` function of:
	# https://git.parabola.nu/abslibre.git/tree/libre/texlive-fontsextra/PKGBUILD

	# remove nonfree packages references from package list
	sed -ri '/^ogham /d' CONTENTS
}
