From 7439f6fc0010d271f11438d67d3f21b0b76b6c67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Wed, 14 Jan 2015 19:52:41 -0200 Subject: gohufont: add new package to [pcr] --- pcr/gohufont/PKGBUILD | 25 +++++++++++++++++++++++++ pcr/gohufont/gohufont.install | 22 ++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 pcr/gohufont/PKGBUILD create mode 100644 pcr/gohufont/gohufont.install (limited to 'pcr') diff --git a/pcr/gohufont/PKGBUILD b/pcr/gohufont/PKGBUILD new file mode 100644 index 000000000..75a4de469 --- /dev/null +++ b/pcr/gohufont/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer (Arch): Hugo Chargois +pkgname=gohufont +pkgver=2.0 +pkgrel=3 +pkgdesc='A bitmap font for programming and terminal use, in two sizes' +arch=(any) +url=http://font.gohu.eu/ +license=(custom:WTFPL) +depends=(xorg-fonts-encodings xorg-fonts-alias xorg-font-utils fontconfig) +install=$pkgname.install +source=(http://font.gohu.eu/$pkgname-$pkgver.tar.gz) +md5sums=('f57ed4493447f9c74f53bb8aa27eae7c') + +package() { + cd $srcdir/$pkgname-$pkgver + install -Dm644 gohufont-11b.pcf.gz $pkgdir/usr/share/fonts/misc/gohufont-11b.pcf.gz + install -Dm644 gohufont-11.pcf.gz $pkgdir/usr/share/fonts/misc/gohufont-11.pcf.gz + install -Dm644 gohufont-uni-11b.pcf.gz $pkgdir/usr/share/fonts/misc/gohufont-uni-11b.pcf.gz + install -Dm644 gohufont-uni-11.pcf.gz $pkgdir/usr/share/fonts/misc/gohufont-uni-11.pcf.gz + install -Dm644 gohufont-14b.pcf.gz $pkgdir/usr/share/fonts/misc/gohufont-14b.pcf.gz + install -Dm644 gohufont-14.pcf.gz $pkgdir/usr/share/fonts/misc/gohufont-14.pcf.gz + install -Dm644 gohufont-uni-14b.pcf.gz $pkgdir/usr/share/fonts/misc/gohufont-uni-14b.pcf.gz + install -Dm644 gohufont-uni-14.pcf.gz $pkgdir/usr/share/fonts/misc/gohufont-uni-14.pcf.gz + install -Dm644 COPYING-LICENSE $pkgdir/usr/share/licenses/$pkgname/COPYING-LICENSE +} diff --git a/pcr/gohufont/gohufont.install b/pcr/gohufont/gohufont.install new file mode 100644 index 000000000..3fb67c03b --- /dev/null +++ b/pcr/gohufont/gohufont.install @@ -0,0 +1,22 @@ +post_install() { + echo "Updating font cache... " + fc-cache -fs >/dev/null 2>&1 + mkfontscale /usr/share/fonts/misc + mkfontdir /usr/share/fonts/misc + xset fp rehash >/dev/null 2>&1 + echo "Make sure that the line" + echo "FontPath \"/usr/share/fonts/misc\"" + echo "is present in xorg.conf under the \"Files\" section" +} + +post_upgrade() { + post_install +} + +post_remove() { + fc-cache -fs >/dev/null 2>&1 + mkfontscale /usr/share/fonts/misc + mkfontdir /usr/share/fonts/misc + xset fp rehash >/dev/null 2>&1 +} + -- cgit v1.2.3-2-g168b