summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-06-07 16:33:11 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-06-07 16:33:47 -0300
commit20173e6537ca9ffc53dac5bea0d1d4706208df62 (patch)
tree6cdd7fd3675c806f363a2f4f4508149b32454e9d /pcr
parentbf896ab0b0fd662455dc522c3ba033f62cfd197f (diff)
downloadabslibre-20173e6537ca9ffc53dac5bea0d1d4706208df62.tar.gz
abslibre-20173e6537ca9ffc53dac5bea0d1d4706208df62.tar.bz2
abslibre-20173e6537ca9ffc53dac5bea0d1d4706208df62.zip
add ttf-free-comic-font to pcr
Diffstat (limited to 'pcr')
-rw-r--r--pcr/ttf-free-comic-font/PKGBUILD39
-rw-r--r--pcr/ttf-free-comic-font/install13
-rwxr-xr-xpcr/ttf-free-comic-font/makefont.pe24
3 files changed, 76 insertions, 0 deletions
diff --git a/pcr/ttf-free-comic-font/PKGBUILD b/pcr/ttf-free-comic-font/PKGBUILD
new file mode 100644
index 000000000..39861d6eb
--- /dev/null
+++ b/pcr/ttf-free-comic-font/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Márcio Silva <coadde@parabola.nu>
+
+pkgname=ttf-free-comic-font
+pkgver=0.03.2
+pkgrel=1
+url='https://github.com/arthursucks/opencomicfont'
+pkgdesc='Free Comic Font'
+license=('LGPL3' 'BSD-3' 'CCPL:by-3')
+arch=('any')
+depends=('fontconfig' 'xorg-font-utils')
+makedepends=('fontforge')
+provides=('ttf-font')
+source=("$url/raw/master/version_${pkgver}_source.tar.gz" 'makefont.pe')
+sha256sums=('c3356d1755f898df031dc21e48c673bfe94f257f0aa296cc44fa696be0ce9798'
+ '294da954e6628944ec731a99b542ba3c3e2d79eec4c0bc59fa3075d9cfc9b326')
+
+install=install
+
+prepare() {
+ cd "$srcdir"
+ rm OpenComicFont.ttf
+ mv {Open,Free}ComicFont.sfd
+ sed -i 's|Open|Free|
+ ' FreeComicFont.sfd
+}
+
+build() {
+ cd "$srcdir"
+ ./makefont.pe FreeComicFont.sfd
+}
+
+package() {
+ cd "$srcdir"
+
+ install -dm755 "${pkgdir}"/usr/share/fonts/TTF
+ install -m644 *.ttf "${pkgdir}"/usr/share/fonts/TTF
+
+ install -Dm644 README.txt "${pkgdir}"/usr/share/licenses/"${pkgname}"/README
+}
diff --git a/pcr/ttf-free-comic-font/install b/pcr/ttf-free-comic-font/install
new file mode 100644
index 000000000..b945821e7
--- /dev/null
+++ b/pcr/ttf-free-comic-font/install
@@ -0,0 +1,13 @@
+post_install() {
+ fc-cache -s
+ mkfontscale usr/share/fonts/TTF
+ mkfontdir usr/share/fonts/TTF
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
diff --git a/pcr/ttf-free-comic-font/makefont.pe b/pcr/ttf-free-comic-font/makefont.pe
new file mode 100755
index 000000000..b36b11603
--- /dev/null
+++ b/pcr/ttf-free-comic-font/makefont.pe
@@ -0,0 +1,24 @@
+#!/usr/bin/fontforge
+
+# Generate font script.
+# Copyright (C) 2015 Márcio Alexandre Silva Delgado <coadde@parabola.nu>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+i=1
+while ( i<$argc )
+ Open($argv[i])
+ Generate($argv[i]:r + ".ttf")
+ i = i+1
+endloop