summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcos Heredia2015-06-09 11:28:41 -0300
committerMarcos Heredia2015-06-09 11:28:41 -0300
commit116848cc75e963b444bd56a7b7784e25b09d4083 (patch)
treebadb75d3cbf80cb25ab5becac57e730db339058a
downloadaur-116848cc75e963b444bd56a7b7784e25b09d4083.tar.gz
Initial import
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD29
-rw-r--r--updatefont.install16
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..512425e4336
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = ttf-impallari-lobster-font
+ pkgdesc = A lovely bold condensed script (OTF), from Pablo Impallari
+ pkgver = 1.4
+ pkgrel = 1
+ url = http://www.impallari.com/lobster/
+ install = updatefont.install
+ arch = any
+ groups = impallari-fonts
+ license = custom:OFL
+ depends = fontconfig
+ depends = xorg-font-utils
+ source = http://www.impallari.com/media/releases/lobster-font-1.4.zip
+ md5sums = ed3c3873340a17276a8ad556ecf3da5a
+
+pkgname = ttf-impallari-lobster-font
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d5f929fd86b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Contributor: Marcos Heredia <chelqo@gmail.com>
+
+_font="lobster-font"
+_group="impallari"
+pkgname=ttf-${_group}-${_font}
+pkgver=1.4
+pkgrel=1
+pkgdesc="A lovely bold condensed script (OTF), from Pablo Impallari"
+arch=(any)
+url="http://www.impallari.com/lobster/"
+license=('custom:OFL')
+groups=("${_group}-fonts")
+depends=('fontconfig' 'xorg-font-utils')
+install=updatefont.install
+source=("http://www.impallari.com/media/releases/${_font}-${pkgver}.zip")
+md5sums=('ed3c3873340a17276a8ad556ecf3da5a')
+
+package() {
+ cd ${srcdir}/*
+
+ install -dm755 "${pkgdir}/usr/share/fonts/TTF/${_group}"
+ install -Dpm644 *.otf "${pkgdir}/usr/share/fonts/TTF/${_group}"
+
+ install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}/"
+ install -Dpm644 License.txt "${pkgdir}/usr/share/licenses/${pkgname}/"
+
+ install -dm755 "${pkgdir}/usr/share/doc/${pkgname}/"
+ install -Dpm644 Readme.txt "${pkgdir}/usr/share/doc/${pkgname}/"
+}
diff --git a/updatefont.install b/updatefont.install
new file mode 100644
index 00000000000..7c7762f6887
--- /dev/null
+++ b/updatefont.install
@@ -0,0 +1,16 @@
+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
+}