# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697
# Maintainer (Arch): EEva <eeva+aur at marvid fr>
# Contributor (Arch): scolobb <scolobb at colimite fr> #THX for the mirror

pkgname=ttf-montserrat
provides=("ttf-montserrat")
pkgdesc="Gorgeous geometric font with extended latin support (Regular, Alternates, Subrayada)"
url="http://montserrat.zkysky.com.ar/en"
pkgver=1.0
pkgrel=1
arch=('i686' 'x86_64')
license=('SIL Open Font')
install=ttf.install
#source=('http://colimite.fr/aur-mirrors/Montserrat.tar.gz') #BACKUP
source=('http://marvid.fr/~eeva/mirror/Montserrat.tar.gz')
sha512sums=('1d36ad8eb439ee2a2eee405bab2535cdf1e798e10d2e1ad93e86abb93656033d9136bda0482fd0d0f1a41473aca2078f5969a1385cdafa4ac7f667ef54f1e30e')

package() {
  cd ${srcdir}/Montserrat-fontfamily

  install -Dm644 OFL.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE"

  mkdir -p ${pkgdir}/usr/share/fonts/TTF
  install -m644 Montserrat-Black.ttf             "${pkgdir}/usr/share/fonts/TTF/Montserrat-Black.ttf"
  install -m644 Montserrat-Bold.ttf              "${pkgdir}/usr/share/fonts/TTF/Montserrat-Bold.ttf"
  install -m644 Montserrat-Light.ttf             "${pkgdir}/usr/share/fonts/TTF/Montserrat-Light.ttf"
  install -m644 Montserrat-Regular.ttf           "${pkgdir}/usr/share/fonts/TTF/Montserrat-Regular.ttf"
  install -m644 Montserrat-Thin.ttf              "${pkgdir}/usr/share/fonts/TTF/Montserrat-Thin.ttf"
  install -m644 MontserratAlternates-Bold.ttf    "${pkgdir}/usr/share/fonts/TTF/MontserratAlternates-Bold.ttf"
  install -m644 MontserratAlternates-Regular.ttf "${pkgdir}/usr/share/fonts/TTF/MontserratAlternates-Regular.ttf"
  install -m644 MontserratSubrayada-Bold.ttf     "${pkgdir}/usr/share/fonts/TTF/MontserratSubrayada-Bold.ttf"
  install -m644 MontserratSubrayada-Regular.ttf  "${pkgdir}/usr/share/fonts/TTF/MontserratSubrayada-Regular.ttf"
}