# Maintainer: Adrian Siekierka <kontakt@asie.pl>
pkgname=font-ipa
pkgver=003.03
pkgrel=0
pkgdesc="Japanese outline fonts by Information-technology Promotion Agency"
url="http://ipafont.ipa.go.jp/"
arch="noarch"
license="IPA"
depends="encodings font-alias mkfontscale mkfontdir fontconfig"
makedepends=""
filever=${pkgver/./}
source="http://dl.ipafont.ipa.go.jp/IPAfont/IPAfont$filever.zip"
builddir="$srcdir/IPAfont$filever"

package() {
	cd "$builddir"

	install -d "${pkgdir}/usr/share/fonts/TTF"
	install -m644 *.ttf "${pkgdir}/usr/share/fonts/TTF/"

	install -d "${pkgdir}/usr/share/licenses/font-ipa"
	install -m644 IPA_Font_License_Agreement_v1.0.txt "${pkgdir}/usr/share/licenses/font-ipa/"
}

md5sums="39a828acf27790adbe4944dfb4d94bb1  IPAfont00303.zip"
sha256sums="f755ed79a4b8e715bed2f05a189172138aedf93db0f465b4e20c344a02766fe5  IPAfont00303.zip"
sha512sums="d3e4a1f189356b7a8b0cba9c706987413c8107f9e43ab2ccf52be6d0483efad8c97b68e075a35c5d04603c460dac7f282c4645ddc8318e993368ec47407f894e  IPAfont00303.zip"
