diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-06-07 16:33:11 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-06-07 16:33:47 -0300 |
commit | 20173e6537ca9ffc53dac5bea0d1d4706208df62 (patch) | |
tree | 6cdd7fd3675c806f363a2f4f4508149b32454e9d /pcr/ttf-free-comic-font/PKGBUILD | |
parent | bf896ab0b0fd662455dc522c3ba033f62cfd197f (diff) |
add ttf-free-comic-font to pcr
Diffstat (limited to 'pcr/ttf-free-comic-font/PKGBUILD')
-rw-r--r-- | pcr/ttf-free-comic-font/PKGBUILD | 39 |
1 files changed, 39 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 +} |