summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD17
-rw-r--r--ttf-inconsolata-g.install20
3 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9ab5185add2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = ttf-inconsolata-g
+ pkgdesc = Monospace font for pretty code listings and for the terminal modified by Leonardo Maffi (http://www.fantascienza.net/leonardo/)
+ pkgver = 20090213
+ pkgrel = 3
+ url = http://levien.com/type/myfonts/inconsolata.html
+ install = ttf-inconsolata-g.install
+ arch = any
+ license = unknown
+ depends = fontconfig
+ depends = xorg-font-utils
+ source = http://www.fantascienza.net/leonardo/ar/inconsolatag/inconsolata-g_font.zip
+ md5sums = c36e53cb9022f8096fb78a0aae00cbb0
+
+pkgname = ttf-inconsolata-g
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c77d3313354
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,17 @@
+# Maintainer: Andrea Agosti <cifvts at gmail dot com>
+
+pkgname=ttf-inconsolata-g
+pkgver=20090213
+pkgrel=3
+pkgdesc="Monospace font for pretty code listings and for the terminal modified by Leonardo Maffi (http://www.fantascienza.net/leonardo/)"
+url="http://levien.com/type/myfonts/inconsolata.html"
+license=('unknown')
+depends=('fontconfig' 'xorg-font-utils')
+source=('http://www.fantascienza.net/leonardo/ar/inconsolatag/inconsolata-g_font.zip')
+install=ttf-inconsolata-g.install
+arch=('any')
+md5sums=('c36e53cb9022f8096fb78a0aae00cbb0')
+
+package() {
+ install -Dm644 $srcdir/Inconsolata-g.otf $pkgdir/usr/share/fonts/TTF/ttf-inconsolata-g.otf
+}
diff --git a/ttf-inconsolata-g.install b/ttf-inconsolata-g.install
new file mode 100644
index 00000000000..4f5212ef22b
--- /dev/null
+++ b/ttf-inconsolata-g.install
@@ -0,0 +1,20 @@
+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 $1
+}
+
+post_remove() {
+ post_install $1
+}
+
+op=$1
+shift
+
+$op $*