summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrainpower2015-02-27 18:49:58 +0100
committerbrainpower2015-02-27 18:49:58 +0100
commitf7723b7a46988c3f4a0d41796fe367f39a95dcdb (patch)
treec9b8e4482484cda917589459767873ab13f213be
downloadaur-f7723b7a46988c3f4a0d41796fe367f39a95dcdb.tar.gz
add: terminus-font-td1
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD59
-rw-r--r--terminus-font-td1.install15
3 files changed, 100 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..db68ec6ea41
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = terminus-font-td1
+ pkgdesc = A superb, monospace bitmap font (for X11 and console) with td1 patch (centered ascii tilde)
+ pkgver = 4.39
+ pkgrel = 1
+ url = http://sourceforge.net/projects/terminus-font/
+ install = terminus-font-td1.install
+ arch = any
+ license = GPL2
+ license = custom:OFL
+ makedepends = xorg-bdftopcf
+ makedepends = fontconfig
+ makedepends = xorg-mkfontscale
+ makedepends = xorg-mkfontdir
+ depends = fontconfig
+ depends = xorg-fonts-encodings
+ depends = xorg-font-utils
+ optdepends = xorg-fonts-alias
+ provides = terminus-font
+ conflicts = terminus-font
+ replaces = xserver-terminus-fonts
+ backup = etc/fonts/conf.d/75-yes-terminus.conf
+ source = http://downloads.sourceforge.net/project/terminus-font/terminus-font-4.39/terminus-font-4.39.tar.gz
+ sha256sums = 3108383986b365a4b9cc08c31a4195196f6de974d2735d77f6c6efa9feb1f5bf
+
+pkgname = terminus-font-td1
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d33f308d577
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer: Maintainer: oi_wtf <brainpower at gulli dot com>
+# Contributor: Vesa Kaihlavirta <vegai@iki.fi>
+# Contributor: Kristoffer Fossgård <kfs1@online.no>
+
+_pkgname=terminus-font
+pkgname=${_pkgname}-td1
+pkgver=4.39
+pkgrel=1
+pkgdesc="A superb, monospace bitmap font (for X11 and console) with td1 patch (centered ascii tilde)"
+arch=('any')
+url='http://sourceforge.net/projects/terminus-font/'
+license=('GPL2' 'custom:OFL')
+makedepends=('xorg-bdftopcf' 'fontconfig' 'xorg-mkfontscale' 'xorg-mkfontdir')
+optdepends=('xorg-fonts-alias')
+depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils')
+install='terminus-font-td1.install'
+backup=('etc/fonts/conf.d/75-yes-terminus.conf')
+conflicts=('terminus-font')
+provides=('terminus-font')
+replaces=('xserver-terminus-fonts')
+source=("http://downloads.sourceforge.net/project/${_pkgname}/${_pkgname}-${pkgver}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('3108383986b365a4b9cc08c31a4195196f6de974d2735d77f6c6efa9feb1f5bf')
+
+prepare() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+
+ chmod +x "configure"
+}
+
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+
+ patch < alt/td1.diff
+
+ ./configure --prefix=/usr \
+ --x11dir=/usr/share/fonts/misc \
+ --psfdir=/usr/share/kbd/consolefonts
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+
+ make DESTDIR="${pkgdir}" install
+
+ install -Dm644 "75-yes-terminus.conf" \
+ "${pkgdir}/etc/fonts/conf.avail/75-yes-terminus.conf"
+
+ install -Dm644 "OFL.TXT" \
+ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ install -d "${pkgdir}/etc/fonts/conf.d"
+ cd "${pkgdir}/etc/fonts/conf.d"
+ ln -s ../conf.avail/75-yes-terminus.conf
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/terminus-font-td1.install b/terminus-font-td1.install
new file mode 100644
index 00000000000..3f5e3bbaaf0
--- /dev/null
+++ b/terminus-font-td1.install
@@ -0,0 +1,15 @@
+post_install() {
+ fc-cache -s
+ mkfontscale usr/share/fonts/misc
+ mkfontdir usr/share/fonts/misc
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
+
+# vim:set ts=2 sw=2 et: