# $Id: PKGBUILD 228677 2015-01-05 16:42:45Z bisson $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Damir Perisa <damir.perisa@bluewin.ch>
# Contributor: Firmicus <francois.archlinux.org> 

pkgname=ttf-freebanglafont
pkgver=20130212
pkgrel=2
pkgdesc='Bengali fonts'
url='http://www.ekushey.org/'
license=('GPL')
arch=('any')
depends=('xorg-fonts-encodings' 'xorg-font-utils' 'fontconfig')

install=install

package() {
	cd "${srcdir}"
	for i in *.ttf; do
		install -Dm644 "${i}" "${pkgdir}/usr/share/fonts/TTF/${i}.ttf"
	done
}

_fonts=('solaimanlipi'
        'rupali'
        'ekushey_lohit'
        'ekushey_sharifa'
        'ekushey-punarbhaba'
        'ekushey_sumit'
        'ekushey-durga'
        'ekushey_Saraswatii'
        'ekushey_puja'
        'ekushey_azad'
        'ekushey_godhuli'
        'ekushey_mohua'
        '16-december'
        'amar-bangla'
        'amar-desh'
        'bangla-kolom'
        'buriganga'
        'ekushey-bangla'
        'ekushey-kolom'
        'ekushey-sumon'
        'ghorautra'
        'lal-sabuj'
        'lal-sabuj-normal'
        'lal-salu'
        'preview-sornaly'
        'preview-mukto'
        'preview-shimanto'
        'preview-ananta')

#source=($(for i in ${_fonts[@]}; do curl -s http://ekushey.org/?page/$i | sed -e 's/"/\n/g' | grep 'http:.*.ttf'; done))

source=('http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/SolaimanLipi_22-02-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/SolaimanLipi_Bold_10-03-12.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Rupali-29-Sep-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Lohit_14-04-2007.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Sharifa_03-09-2005.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Punarbhaba_27-02-2006.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Punarbhaba_Bold-04-09-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Sumit_03-09-2005.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Durga_03-09-2005.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Durga_Bold-04-09-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Saraswatii_03-09-2005.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Puja-17-06-2006.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Azad_27-02-2006.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Godhuli_03-09-2005.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Mohua_07-09-05.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/16_December_31-08-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Amar_Bangla_31-08-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Amar_Bangla_Bold_31-08-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Amar_Desh_31-08-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Bangla_Kolom_Regular-04-09-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Bangla_Kolom_Bold-04-09-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Buriganga_31-08-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Ekushey_Bangla-04-09-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Ekushey_Bangla_Bold-04-09-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Ekushey_Kolom_31-08-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Ekushey_Kolom_Bold_31-08-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Sumon_Normal_31-08-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Ghorautra_Nornal_31-08-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Ghorautra_Bold_31-08-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Lal_Sabuj_31-08-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/LalSabuj_Bold-04-09-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Lal_Sabuj_Normal_31-08-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/LalSabuj%20Normal_Bold-04-09-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Lal_Salu_Normal_31-08-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Lal_Salu_Bold_31-08-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Sornaly_Normal_31-08-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Mukto_Normal_31-08-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Mukto_Bold-04-09-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Shimanto_31-08-2012.ttf'
        'http://files.ekushey.org/Ekushey_OpenType_Bangla_Fonts/Ekushey_Ananta_12-02-2013.ttf')

sha1sums=('30d472ac90d2cda100679de5a2854610015166a9'
          'ef4fede389424d2c6f1e657fcf17a1fbf3814261'
          '6efcbed3c9116284f05d634172bbf53d0442d133'
          'bab747cb3d74c1c7860f5c6692f9c11a0087e870'
          'f80b57e9857bdfadf1b819bfd2ada146cbd6429f'
          '24a8193d72528083bd4e4c97a8726b8c5ccb1c0a'
          'ec8ea34cbce28c30dad94790a8f28ca12948dc39'
          '733206bc06ae76c29ca14d9895052c9f59086cb4'
          '99284f3a7bdc123d4cf83d19ee3724da55cc6c7a'
          'ba95dbbce2de737de5a34ee82b293ff25f77bf21'
          'cc51d70d1cb5b0ce9385663b11a4d27746e9061d'
          'da74e108083bb22f02a0f32ed7bae8d12be0ca79'
          '6ba6c90f3e27265275775ae6bca14e77e72b3f7e'
          'f8156b328678b551c9da3d146a0ec2f32caf1dd2'
          '7af5d738b0c7d6493cbcae58b417d6d35d2621aa'
          '4e4c6cb30c4fdcb0a3908cfd56dba4c87b3e5fe7'
          '78092f5d245bc08c6fb01f15f475c915b71b2275'
          '8c0b4f4ef718cb1aa6e95cb35ee995bbaf86e28e'
          '9c477c312de3ed7c7214cb7ba69c6c28c9ccb1ef'
          '53680431c6baf92917bcffac781970328ed8a4aa'
          '49c005ceb7dc3e624baffde04deb1cac4296964b'
          '1e78a0eafae27a875598ed0bdbfbef7a0e10826d'
          '9b2a9fd81e7209ef90311614f6d504710d5b82aa'
          '98ab641d1cb769bd4be50f2a6c66198daf4071c0'
          'c67cfb04845229029832abe41ceec59b255f1583'
          'df389c6c18c851ac40dff05f6d236e1b675fdc3c'
          'c4a2b2abc14b568600e11a0096e075517e270b02'
          'f373723f557b1a723b1a0d70d3467f69dd2d1cb9'
          'df00ba917cb1831673c044e3365d3849cac55a10'
          '33158da9bed513c80e2836396e615c4f663b4a6c'
          'ed49ebfea5fc6a32771c1c367d70f971c6c42138'
          '60da9e7c23c69b8983577887560f0dfda55f7629'
          '1cd78e0c44199f4d5f43d37b44c9af7d482dd6ea'
          '5c197de7730fce439e637300324f7345c3b4169c'
          '787650cb61f2d9ecdbb74fdfd2a2bb8b3dbd52d3'
          '928bbe13d707d29f8eb9e9f46cf4b262f0ea4d5e'
          '2b56f53e2a8d8889ca78d85c4d1d3a10b031fde5'
          'a79df842b61b9dd2d5ff0206fc74632543a1b909'
          '7e362861c574091660e86d26f75c436fa86d8068'
          'f521489a711200f393a2bd7953b54b1862e8eed5')
