summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/ttf-montserrat/PKGBUILD35
-rw-r--r--pcr/ttf-montserrat/ttf.install15
2 files changed, 50 insertions, 0 deletions
diff --git a/pcr/ttf-montserrat/PKGBUILD b/pcr/ttf-montserrat/PKGBUILD
new file mode 100644
index 000000000..1069ddb19
--- /dev/null
+++ b/pcr/ttf-montserrat/PKGBUILD
@@ -0,0 +1,35 @@
+# 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')
+depends=
+install=ttf.install
+makedepends=
+#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"
+} \ No newline at end of file
diff --git a/pcr/ttf-montserrat/ttf.install b/pcr/ttf-montserrat/ttf.install
new file mode 100644
index 000000000..1df944e73
--- /dev/null
+++ b/pcr/ttf-montserrat/ttf.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -sf > /dev/null
+ mkfontscale usr/share/fonts/TTF
+ mkfontdir usr/share/fonts/TTF
+ echo "done."
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+} \ No newline at end of file