diff options
-rw-r--r-- | pcr/ttf-free-comic-font/PKGBUILD | 39 | ||||
-rw-r--r-- | pcr/ttf-free-comic-font/install | 13 | ||||
-rwxr-xr-x | pcr/ttf-free-comic-font/makefont.pe | 24 |
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 |