summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Düll2015-07-04 14:02:22 +0200
committerMichael Düll2015-07-04 14:02:22 +0200
commit58b1a954ea92c828b7a24b1fe447cf928afe8dcd (patch)
treebb934568f64dcae2d5db3033f1f2e1e624dee916
downloadaur-ttf-lcsmith-typewriter.tar.gz
Initial import
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD27
-rw-r--r--ttf-lcsmith-typewriter.install15
3 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3c2bebc1bb8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = ttf-lcsmith-typewriter
+ pkgdesc = L. C. Smith Typewriter font.
+ pkgver = 20120906
+ pkgrel = 2
+ url = http://www.typewriters.ch/collection/l_c_smith_no5.html
+ install = ttf-lcsmith-typewriter.install
+ arch = any
+ license = custom:free_for_non_commercial_use
+ makedepends = wget
+ makedepends = unzip
+ depends = fontconfig
+ depends = xorg-fonts-encodings
+ depends = xorg-font-utils
+ source = http://www.typewriters.ch/fonts/L.C.%20Smith%20typewriter%20font.zip
+ sha512sums = e23a4b3afdc23127fb2ebdd6af6d9c40bdc5692dd02ffe8bb4dbefec7326a8e8c7b1a28d84f2739c61cc82e32b43810bee4a85fa3f7fb724a311884e6a35953b
+
+pkgname = ttf-lcsmith-typewriter
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bd6e4ebf6ef
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Michael Düll <mail@akurei.me> PGP-Key: AAAEE882
+
+pkgname=ttf-lcsmith-typewriter
+pkgver=20120906
+pkgrel=2
+pkgdesc='L. C. Smith Typewriter font.'
+arch=('any')
+license=('custom:free_for_non_commercial_use')
+url="http://www.typewriters.ch/collection/l_c_smith_no5.html"
+depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils')
+makedepends=('wget' 'unzip')
+install=$pkgname.install
+source=(
+ "http://www.typewriters.ch/fonts/L.C.%20Smith%20typewriter%20font.zip"
+)
+
+package()
+{
+ cd "$srcdir/"
+ unzip -qo L.C.%20Smith%20typewriter%20font.zip
+ install -d $pkgdir/usr/share/fonts/TTF/
+ install -m644 *.ttf $pkgdir/usr/share/fonts/TTF/
+ install -d $pkgdir/usr/share/licenses/$pkgname/
+ install -m644 $srcdir/info.txt $pkgdir/usr/share/licenses/$pkgname/
+}
+
+sha512sums=('e23a4b3afdc23127fb2ebdd6af6d9c40bdc5692dd02ffe8bb4dbefec7326a8e8c7b1a28d84f2739c61cc82e32b43810bee4a85fa3f7fb724a311884e6a35953b')
diff --git a/ttf-lcsmith-typewriter.install b/ttf-lcsmith-typewriter.install
new file mode 100644
index 00000000000..7dde94b4518
--- /dev/null
+++ b/ttf-lcsmith-typewriter.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 $1
+}
+
+post_remove() {
+ post_install $1
+}