# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=bengali-fonts
pkgver=1.0
pkgrel=0
pkgdesc="Libre typefaces for Bengali (Bengla script)"
url="https://www.nongnu.org/freebangfont/index.html"
arch="noarch"
options="!check"  # No test suite.
license="GPL-2.0-only"
depends="fontconfig"
makedepends=""
subpackages=""
source="https://savannah.nongnu.org/download/freebangfont/Akaash-0.8.5.tar.gz
	https://savannah.nongnu.org/download/freebangfont/Ani.tar.gz
	https://savannah.nongnu.org/download/freebangfont/Likhan-0.5.tar.gz
	https://savannah.nongnu.org/download/freebangfont/MuktiNarrow-0.94.tar.bz2
	"
builddir="$srcdir"

prepare() {
	default_prepare
	# don't capitalise extension
	mv Ani/mitra.TTF Ani/mitra.ttf
}

package() {
	install -m644 -Dt "$pkgdir"/usr/share/fonts/X11/TTF \
		$(find . -name *.ttf)
}

sha512sums="0f21c67b0ec4af383573688d43f3ae72727382aeb33a914255dfaec2eed639306b175947f3c31a4896488896e40b3e4439d5d9b68f905bb2d8dc7875f99765cb  Akaash-0.8.5.tar.gz
147ad2cb7122a0c64a0cebf15821b2269b9f639615293bd27623b55a1c58b17a848968f9023921a06e5171172587af2eb2c01aa539731416d26ebd00fc77a9ee  Ani.tar.gz
c20f4bb17498fcb67afb4e709b7edfbaee20346cd0552ef850fcb8af928c355f4ce7f8c1c92936094e1d23b0d5040340eaf8fe6d2bb6b405c8695dce39fc29eb  Likhan-0.5.tar.gz
f7abd429e2591eaa047d1ac982d97fa67dc1480c42e55b2a97861abd90918704dce90b6bb27dec7b6d696f188017a74de54a7b7f45281f0515923b90300959d1  MuktiNarrow-0.94.tar.bz2"