summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcos Heredia2015-06-09 11:28:12 -0300
committerMarcos Heredia2015-06-09 11:28:12 -0300
commitc7be40f229e1ee36d8add02c6881e2f0e8b65872 (patch)
tree8ae98b4c9887a4f25f10c6b27b1a93fcd9c61217
downloadaur-c7be40f229e1ee36d8add02c6881e2f0e8b65872.tar.gz
Initial import
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD31
-rw-r--r--updatefont.install15
3 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..623c6dd45bd
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = ttf-impallari-libre-caslon-text
+ pkgdesc = Libre Caslon in Text style, from Pablo Impallari
+ pkgver = 1.0
+ pkgrel = 2
+ url = http://www.impallari.com/projects/overview/libre-caslon-display-and-text
+ install = updatefont.install
+ arch = any
+ groups = impallari-fonts
+ license = custom:OFL
+ depends = fontconfig
+ depends = xorg-font-utils
+ source = http://www.impallari.com/media/uploads/prosources/update-94-source.zip
+ md5sums = 588a7650bb441a569b81f927f71732cd
+
+pkgname = ttf-impallari-libre-caslon-text
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3181b39763e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Marcos Heredia <chelqo@gmail.com>
+
+_font="libre-caslon-text"
+_group="impallari"
+_update=94
+pkgname=ttf-${_group}-${_font}
+pkgver=1.0
+pkgrel=2
+pkgdesc="Libre Caslon in Text style, from Pablo Impallari"
+arch=(any)
+url="http://www.impallari.com/projects/overview/libre-caslon-display-and-text"
+screenshot="http://www.impallari.com/media/uploads/proupdates/94-foto01-original.jpg"
+license=('custom:OFL')
+groups=("${_group}-fonts")
+depends=('fontconfig' 'xorg-font-utils')
+install=updatefont.install
+source=("http://www.impallari.com/media/uploads/prosources/update-${_update}-source.zip")
+md5sums=('588a7650bb441a569b81f927f71732cd')
+
+package() {
+ cd ${srcdir}/L*
+
+ install -dm755 "${pkgdir}/usr/share/fonts/TTF/${_group}"
+ install -Dpm644 *.ttf "${pkgdir}/usr/share/fonts/TTF/${_group}"
+
+ install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}/"
+ install -Dpm644 OFL.txt "${pkgdir}/usr/share/licenses/${pkgname}/"
+
+ install -dm755 "${pkgdir}/usr/share/doc/${pkgname}/"
+ install -Dpm644 FONTLOG.txt *.png "${pkgdir}/usr/share/doc/${pkgname}/"
+}
diff --git a/updatefont.install b/updatefont.install
new file mode 100644
index 00000000000..43e14fbd0cf
--- /dev/null
+++ b/updatefont.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -f > /dev/null
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done."
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}