From 20173e6537ca9ffc53dac5bea0d1d4706208df62 Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Tue, 7 Jun 2016 16:33:11 -0300 Subject: add ttf-free-comic-font to pcr --- pcr/ttf-free-comic-font/PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++ pcr/ttf-free-comic-font/install | 13 +++++++++++++ pcr/ttf-free-comic-font/makefont.pe | 24 +++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 pcr/ttf-free-comic-font/PKGBUILD create mode 100644 pcr/ttf-free-comic-font/install create mode 100755 pcr/ttf-free-comic-font/makefont.pe (limited to 'pcr/ttf-free-comic-font') 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 + +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 +# +# 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 . + +i=1 +while ( i<$argc ) + Open($argv[i]) + Generate($argv[i]:r + ".ttf") + i = i+1 +endloop -- cgit v1.2.3-54-g00ecf