You are not logged in.

#1 2004-08-30 20:44:57

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

xserver-terminus-fonts pkgbuild. designed for console&xt

These are very nice and clean, fixed width fonts designed for use under console and X.
Description from the homepage:

Terminus Font is designed for long (8 and more hours per day) work with computers. Version 4.09 contains 594 characters, covering code pages ISO8859-1/2/5/9/13/15/16, Windows-1250/1251/1252/1254/1257, IBM-437/852/855/866, KOI8-R/U/E/F, Bulgarian-MIK, Paratype-PT154/PT254, Macintosh-Ukrainian and Esperanto, and also the vt100 and xterm pseudographic characters.

The sizes present are 8x14, 8x16, 10x20, 12x24, 14x28 and 16x32. The styles are normal and bold, plus EGA/VGA-bold for 8x14 and 8x16.

The package can be split into 2 separate packages if you really need it (one for console and one for x-server). I don't need 2 packages :-)

xserver-terminus-fonts PKGBUILD

pkgname=xserver-terminus-fonts
pkgver=4.09
pkgrel=1
pkgdesc="Clean fixed width fonts for console and x-server"
url="http://www.is-vn.bg/hamster/jimmy-en.html"
depends=('x-server' 'kbd')
makedepends=('perl' 'mawk')
install=xserver-terminus-fonts.install
source=('http://www.is-vn.bg/hamster/terminus-font-4.09.tar.gz')
md5sums=('21e832a4b4bfdd1f494eddea06ccfedf')

build() {

    cd $startdir/src/terminus-font-4.09

    ./configure 
    --prefix=/usr 
    --psfdir=$startdir/pkg/usr/share/kbd/consolefonts 
    --unidir=$startdir/pkg/usr/share/kbd/consoletrans 
    --x11dir=$startdir/pkg/usr/X11R6/lib/X11/fonts/terminus

    make psf pcf

    make install-psf install-uni install-pcf 

    rm -f $startdir/pkg/usr/share/kbd/consoletrans/cp1250_to_uni.trans
    rm -f $startdir/pkg/usr/share/kbd/consoletrans/cp1251_to_uni.trans
    rm -f $startdir/pkg/usr/share/kbd/consoletrans/cp437_to_uni.trans
    rm -f $startdir/pkg/usr/share/kbd/consoletrans/koi8-r_to_uni.trans

}

xserver-terminus-fonts.install

# arg 1:  the new package version
post_install() {

    echo "Rebuilding font cache..."
    /usr/bin/fc-cache
    echo "...done."

    echo "Rebuilding font index..."
    cd /usr/X11R6/lib/X11/fonts/terminus
    /usr/X11R6/bin/mkfontscale
    /usr/X11R6/bin/mkfontdir
    rm -f /usr/X11R6/lib/X11/fonts/terminus/encodings.dir
    ln -s /usr/X11R6/lib/X11/fonts/encodings/encodings.dir 
        /usr/X11R6/lib/X11/fonts/terminus/encodings.dir
    echo "...done."

    echo "------------------------------------"
    echo "Add (install) / delete (uninstall) the following" 
    echo "font paths in your /etc/X11/xorg.conf or /etc/X11/XF86Config"
    echo ""
    echo "/usr/X11R6/lib/X11/fonts/terminus"
    echo ""

}

# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
    
    post_install $1

}

# arg 1:  the old package version
pre_remove() {

    /bin/true

}

# arg 1:  the old package version
post_remove() {

    post_install $1
    
}

op=$1
shift

$op $*

Offline

#2 2004-09-01 01:43:32

tehdely
Member
Registered: 2004-02-20
Posts: 148
Website

Re: xserver-terminus-fonts pkgbuild. designed for console&xt

TUR: meet package.  Thanks, lanrat!


[Arch GNUstep Repository] [ PKGBUILDS ]
[code][gnustep]
Server = ftp://blkwidow.lerp.com/pub/mirror/arch/gnustep[/code]

Offline

#3 2005-03-02 21:52:41

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: xserver-terminus-fonts pkgbuild. designed for console&xt

New version is out. I'm leaving the old pkgbuild above as backup.

EDIT: Another update from 4.12 to 4.14 (small fixes only):

xserver-terminus-fonts PKGBUILD

pkgname=xserver-terminus-fonts
pkgver=4.14
pkgrel=1
pkgdesc="Clean fixed width fonts for console and x-server"
url="http://www.is-vn.bg/hamster/jimmy-en.html"
depends=('x-server' 'kbd')
makedepends=('perl' 'mawk')
install=xserver-terminus-fonts.install
source=(http://www.is-vn.bg/hamster/terminus-font-${pkgver}.tar.gz)
md5sums=('2d96ec962b65498370fb8b8ea15294c8')

build() {

    cd $startdir/src/terminus-font-${pkgver}

    ./configure 
    --psfdir=/usr/share/kbd/consolefonts --unidir=/usr/share/kbd/consoletrans 
    --x11dir=/usr/X11R6/lib/X11/fonts/terminus --acmdir=/usr/share/kbd/consoletrans 
    --rawdir=/usr/share/terminus/pcvtfonts

    make psf pcf raw 12b txt

    make DESTDIR=$startdir/pkg install-psf install-pcf install-12b install-raw install-uni install-acm

}

xserver-terminus-fonts.install

# arg 1:  the new package version
post_install() {

    echo "Rebuilding font cache..."
    /usr/bin/fc-cache
    echo "...done."

    echo "Rebuilding font index..."
    cd /usr/X11R6/lib/X11/fonts/terminus
    /usr/X11R6/bin/mkfontscale
    /usr/X11R6/bin/mkfontdir
    rm -f /usr/X11R6/lib/X11/fonts/terminus/encodings.dir
    ln -s /usr/X11R6/lib/X11/fonts/encodings/encodings.dir /usr/X11R6/lib/X11/fonts/terminus/encodings.dir
    echo "...done."

    echo "------------------------------------"
    echo "Add (install) / delete (uninstall) the following"
    echo "font paths to/from your /etc/X11/xorg.conf:"
    echo ""
    echo "/usr/X11R6/lib/X11/fonts/terminus"
    echo ""

}

# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {

    post_install $1

}

# arg 1:  the old package version
pre_remove() {

    /bin/true

}

# arg 1:  the old package version
post_remove() {

    post_install $1

}

op=$1
shift

$op $*

Offline

#4 2005-07-23 04:02:26

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: xserver-terminus-fonts pkgbuild. designed for console&xt

-=edit=- nevermind, I'm a dummy who didn't read http://bbs.archlinux.org/viewtopic.php?t=10430&start=0 that thread enough.  Argh. -=/edit=-

... this may sound dumb, but what name do I use when trying to set this font in Xterm?
I've tried -fn terminus -fn Terminus -fn term and none of them work.  any help for my poor uneducated self would be appreciated.

Offline

Board footer

Powered by FluxBB