diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 30 | ||||
-rw-r--r-- | updatefont.install | 15 |
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1baf621c1afa --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = ttf-impallari-cantora + pkgdesc = Cantora ('Singer' in Spanish) is a friendly semi formal, semi condensed, semi sans serif, from Pablo Impallari + pkgver = 1.001 + pkgrel = 1 + url = http://www.impallari.com/ + 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-67-source.zip + md5sums = 4406a0c9a8ee2a4de1352e74f0640bb7 + +pkgname = ttf-impallari-cantora + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9f990cee0836 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Contributor: Marcos Heredia <chelqo@gmail.com> + +_font="cantora" +_group="impallari" +_update=67 +pkgname=ttf-${_group}-${_font} +pkgver=1.001 +pkgrel=1 +pkgdesc="Cantora ('Singer' in Spanish) is a friendly semi formal, semi condensed, semi sans serif, from Pablo Impallari" +arch=(any) +url="http://www.impallari.com/" +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=('4406a0c9a8ee2a4de1352e74f0640bb7') + +package() { + cd ${srcdir}/C* + + 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 "${pkgdir}/usr/share/doc/${pkgname}/" +} diff --git a/updatefont.install b/updatefont.install new file mode 100644 index 000000000000..43e14fbd0cff --- /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 +} |