diff options
author | Kyle Keen | 2015-08-09 07:39:10 -0400 |
---|---|---|
committer | Kyle Keen | 2015-08-09 07:39:10 -0400 |
commit | 661c0c0078c72bb5a4c7dad930cdd4c4bd3174fc (patch) | |
tree | e3b9081a687447cac159556434071174bf575054 | |
download | aur-661c0c0078c72bb5a4c7dad930cdd4c4bd3174fc.tar.gz |
aur3 recovery
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 26 | ||||
-rw-r--r-- | gohufont.install | 22 |
3 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f2e8a13ded58 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = gohufont + pkgdesc = A bitmap font for programming and terminal use, in two sizes + pkgver = 2.0 + pkgrel = 3 + url = http://font.gohu.eu/ + install = gohufont.install + arch = any + license = custom:WTFPL + depends = xorg-fonts-encodings + depends = xorg-fonts-alias + depends = xorg-font-utils + depends = fontconfig + source = http://font.gohu.eu/gohufont-2.0.tar.gz + md5sums = f57ed4493447f9c74f53bb8aa27eae7c + +pkgname = gohufont + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0bc2ec50d590 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Hugo Chargois <hugo dot chargois at free dot fr> +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" + _fonts="$pkgdir/usr/share/fonts/misc" + install -Dm644 gohufont-11b.pcf.gz "$_fonts/gohufont-11b.pcf.gz" + install -Dm644 gohufont-11.pcf.gz "$_fonts/gohufont-11.pcf.gz" + install -Dm644 gohufont-uni-11b.pcf.gz "$_fonts/gohufont-uni-11b.pcf.gz" + install -Dm644 gohufont-uni-11.pcf.gz "$_fonts/gohufont-uni-11.pcf.gz" + install -Dm644 gohufont-14b.pcf.gz "$_fonts/gohufont-14b.pcf.gz" + install -Dm644 gohufont-14.pcf.gz "$_fonts/gohufont-14.pcf.gz" + install -Dm644 gohufont-uni-14b.pcf.gz "$_fonts/gohufont-uni-14b.pcf.gz" + install -Dm644 gohufont-uni-14.pcf.gz "$_fonts/gohufont-uni-14.pcf.gz" + install -Dm644 COPYING-LICENSE "$pkgdir/usr/share/licenses/$pkgname/COPYING-LICENSE" +} diff --git a/gohufont.install b/gohufont.install new file mode 100644 index 000000000000..3fb67c03bf3b --- /dev/null +++ b/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 +} + |