You are not logged in.

#1 2004-08-30 20:24:25

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

ttf-pl-fonts pkgbuild: true type fonts with polish chars

This pkgbuild installs many additional true type (ttf) fonts which support (at least) Polish characters. This can be useful for Polish users (and maybe not only).

ttf-pl-fonts PKGBUILD

pkgname=ttf-pl-fonts
pkgver=1.0
pkgrel=1
pkgdesc="TrueType (TTF) fonts with Polish characters"
depends=('x-server')
makedepends=('unzip' 'rar')
install=ttf-pl-fonts.install
source=(
'ftp://download.idg.pl/7201/czcionki/polskie.zip' 
'ftp://download.idg.pl/7201/czcionki/polskie2.zip' 
'ftp://download.idg.pl/7201/czcionki/polskie3.zip' 
'ftp://download.idg.pl/7201/czcionki/polskie4.zip' 
'ftp://download.idg.pl/7201/czcionki/polskie5.zip' 
'ftp://download.idg.pl/7201/czcionki/polskie6.zip' 
'ftp://download.idg.pl/7201/czcionki/polskie7.zip' 
'ftp://download.idg.pl/7201/czcionki/polskie8.zip' 
'ftp://download.idg.pl/7201/czcionki/polskie9.zip' 
'ftp://download.idg.pl/7201/czcionki/polskie10.zip' 
'ftp://download.idg.pl/7201/czcionki/polskie11.zip' 
'ftp://download.idg.pl/7201/czcionki/polskie12.zip' 
'ftp://download.idg.pl/7201/czcionki/polskie13.zip' 
'ftp://download.idg.pl/7201/czcionki/polskie14.zip' 
'ftp://download.idg.pl/7201/czcionki/polskie15.zip' 
'ftp://download.idg.pl/7201/czcionki/polskie16.zip' 
'ftp://download.idg.pl/7201/czcionki/polskie17.zip' 
'http://www.gust.org.pl/fonty/antyktort.zip' 
'ftp://ftp.gust.org.pl/pub/TeX/GUST/contrib/fonts/replicas/antp-ttf.zip' 
'ftp://ftp.gust.org.pl/TeX/GUST/contrib/fonts/qfonts/qpl.zip' 
'ftp://ftp.gust.org.pl/TeX/GUST/contrib/fonts/qfonts/qtm.zip' 
'ftp://ftp.gust.org.pl/TeX/GUST/contrib/fonts/qfonts/qbk.zip' 
'ftp://ftp.gust.org.pl/TeX/GUST/contrib/fonts/qfonts/qcr.zip' 
'ftp://ftp.gust.org.pl/TeX/GUST/contrib/fonts/qfonts/qhv.zip' 
'ftp://ftp.gust.org.pl/TeX/GUST/contrib/fonts/qfonts/qzc.zip' 
'http://www.nowak.tv/fontoholic/uploads/download/zip/hieroglify.zip' 
'http://www.nowak.tv/fontoholic/uploads/download/zip/innafonta.zip' 
'http://www.nowak.tv/fontoholic/uploads/download/zip/ministrzalki.zip' 
'http://www.nowak.tv/fontoholic/uploads/download/zip/barbarjowepisanki.zip' 
'http://www.nowak.tv/fontoholic/uploads/download/zip/rittswoodclassic_08.zip' 
'http://www.nowak.tv/fontoholic/uploads/download/zip/rittswoodplaza_8.zip' 
'http://www.nowak.tv/fontoholic/uploads/download/zip/rittswoodyoung_08.zip' 
'http://www.nowak.tv/fontoholic/uploads/download/zip/rittswoodyoungex_7.zip' 
'http://www.nowak.tv/fontoholic/uploads/download/zip/rittswoodoffice_lg.zip' 
'http://www.nowak.tv/fontoholic/uploads/download/zip/rittswoodimpresive_6.zip' 
'http://www.nowak.tv/fontoholic/uploads/download/zip/rittswoodprofile_6.zip' 
'http://www.nowak.tv/fontoholic/uploads/download/zip/artur.zip' 
'http://www.nowak.tv/fontoholic/uploads/download/zip/battlefield.zip' 
'http://www.nowak.tv/fontoholic/uploads/download/zip/weronika.zip' 
'http://www.nowak.tv/fontoholic/uploads/download/zip/art.zip' 
)

md5sums=('2d791a749a7d34e328f49af1e8fefc4e' '85630168876ed7103c155d99c9fccd1a'
         'ba21e3a721ac685de30c986a6f76bce0' '8cfe9b69d9c0e30048ef2dbc216720a7'
         '451b75c99af5745b9a5d4827b095ef48' '38239748f71f4e01ebd6e540f72ab801'
         '3bc9729e4e37a86fcba598fc3e706fb7' '6fe9a9c68607ce39690b8d63879c4e8a'
         '98a8d835eaeee2932ea0bae9a58dc908' 'd61d326c4ebb83656edf44292f589bc3'
         '0ba8c7c4797e5431526a252b00a478d6' 'db2a885357e039ecc4e2065a5180ab7a'
         '90c9644740152b280be4ef6a807a94ef' 'f72747367eb8cd3ad798cf2a098abfb1'
         '991c4fcea4cb6477f4c1b5dd6ca4479b' 'd124454aec82e899eeddcf01116ff856'
         '2058e42dbf3b1ecc8e29bfdd8e7cb774' '092c929002f9c6b0f6b2abb707f6bf35'
         '20df36528010980a8b5b7403a3982453' 'cade102693c1e6f233c3b383bfdbe20d'
         'ad61c8635b8f1bbf5364ecc87b911afb' 'e5c9b7e947e88d3d7fd11b0c56502647'
         '005288363edc2edc0b0e5f729d21c19e' '9d4d220a7f8d6c9eec5b2940ad1a3a99'
         '304bd75a47a5f046b612bf242828853b' 'fd557b6d92045185638bd857799011b5'
         '199f74e453528026d503ccbe4ae2756c' 'f24f2f8926e1798fc1dbd9ec53295cfc'
         '281b45f3a34a39fc731ff83191107faf' '2a8777c222a99ab9b0ae2a3bbbbebfa2'
         '65d7d5a077ef762ed314c14198650563' 'e8c13e01c7aab4054becfab839ed157e'
         '459b009e938a607f33eb2c6dfdd947b3' 'c0ccff6aa13665743a388225cc57a84b'
         'd0f7d67ab0e3b87ea76603bb3469ead0' '7887be417769742da7797e09388efec6'
         '58101c17676b861419ba6bf48990dec1' 'f41ac71e8ffa45d10ce7cfdd3161ec4d'
         'fe50f947f80ea46c4dda0f0235ccb643' '1b2ae8080c045ef25cfe6b2eb66298cf'
)

build() {

    rm -f $startdir/src/polskie*.zip

    /usr/bin/unzip -Cjoq "$startdir/src/*.zip" "*.ttf" 
    -d $startdir/src/$pkgname
    
    /usr/bin/unrar e -inul -o+ -y "$startdir/src/*.rar" "*.ttf" 
    $startdir/src/$pkgname
    
    install -d -m755 $startdir/pkg/usr/X11R6/lib/X11/fonts/TTF

    install -m644 $startdir/src/${pkgname}/* 
            $startdir/pkg/usr/X11R6/lib/X11/fonts/TTF

}

ttf-pl-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/TTF
    /usr/X11R6/bin/mkfontscale
    /usr/X11R6/bin/mkfontdir
    rm -f /usr/X11R6/lib/X11/fonts/TTF/encodings.dir
    ln -s /usr/X11R6/lib/X11/fonts/encodings/encodings.dir 
        /usr/X11R6/lib/X11/fonts/TTF/encodings.dir
    echo "...done."

}

# 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 $*

Most fonts (from digit.pl and novak.tv) are released under freeware for non commercial use license. Not all are very high quality fonts (don't blame me :-)) but they can be also useful for window manager theming, etc. The fonts from gust.org.pl (Polish tex users group) are high quality fonts and they are released under GNU GPL. Some ttf fonts are nonscalable bitmap fonts (mini series) - very useful for menus, xterms, etc. The fonts are installed in the same directory as ttf-ms-fonts. Add this path (if you don't have it already) to your xorg.conf or XF86Config. You can also use xset +fp /usr/X11R6/lib/X11/fonts/TTF to add them after installation without restarting X.

Offline

#2 2004-08-30 23:19:22

Abaddon
Member
From: Poland
Registered: 2004-05-03
Posts: 249

Re: ttf-pl-fonts pkgbuild: true type fonts with polish chars

Microsoft also gives their ttf's for free, isn't it?


Gnome - The weakest link!
Linux, *not* GNU/Linux!

Offline

#3 2004-08-31 11:02:44

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

Re: ttf-pl-fonts pkgbuild: true type fonts with polish chars

More or less - yes. But only some fonts - I think they are all included in the ttf-ms-fonts package. You can't only repackage them (they are zipped in cab format) or something like this.

Offline

#4 2004-09-01 01:40:49

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

Re: ttf-pl-fonts pkgbuild: true type fonts with polish chars

Lanrat I'll add this to my TUR if you split it up by license; I'd rather not commingle the GPLed fonts with the non-free ones.


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

Offline

#5 2004-09-01 13:03:45

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

Re: ttf-pl-fonts pkgbuild: true type fonts with polish chars

Thanks tehdely for including this (and other things) in your tur big_smile

The package can be separated of course - I was just too lazy when I was building it for the first time :-)
I don't have access to my arch box right now but I tried to split the pkgbuild (see below) - it should work though I'll be able to check it myself in a few hours. If I messed something with md5sums just delete them and generate new with makepkg -g >>PKGBUILD. If there are any problems I'll correct them later today.

One thing I couldn't decide really is what names should be used? Feel free to change them to whatever you think is better (I followed other arch font packages names). Both pkgbuilds below use the same install file - identical to the one above, so I'm not posting it again - no changes required. I think that even if there are two packages all fonts should go to one TTF directory - it's easier to maintain font configs this way.

ttf-pl-fonts (GNU GPL)

pkgname=ttf-pl-fonts 
pkgver=1.0 
pkgrel=1 
pkgdesc="TrueType (TTF) fonts with Polish characters (GNU GPL licence)" 
depends=('x-server') 
makedepends=('unzip') 
install=ttf-pl-fonts.install 
source=( 
'http://www.gust.org.pl/fonty/antyktort.zip'  
'ftp://ftp.gust.org.pl/pub/TeX/GUST/contrib/fonts/replicas/antp-ttf.zip'  
'ftp://ftp.gust.org.pl/TeX/GUST/contrib/fonts/qfonts/qpl.zip'  
'ftp://ftp.gust.org.pl/TeX/GUST/contrib/fonts/qfonts/qtm.zip'  
'ftp://ftp.gust.org.pl/TeX/GUST/contrib/fonts/qfonts/qbk.zip'  
'ftp://ftp.gust.org.pl/TeX/GUST/contrib/fonts/qfonts/qcr.zip'  
'ftp://ftp.gust.org.pl/TeX/GUST/contrib/fonts/qfonts/qhv.zip'  
'ftp://ftp.gust.org.pl/TeX/GUST/contrib/fonts/qfonts/qzc.zip'  
) 

md5sums=('092c929002f9c6b0f6b2abb707f6bf35' '20df36528010980a8b5b7403a3982453'
'cade102693c1e6f233c3b383bfdbe20d' 'ad61c8635b8f1bbf5364ecc87b911afb'
'e5c9b7e947e88d3d7fd11b0c56502647' '005288363edc2edc0b0e5f729d21c19e'
'9d4d220a7f8d6c9eec5b2940ad1a3a99' '304bd75a47a5f046b612bf242828853b')

build() { 

    /usr/bin/unzip -Cjoq "$startdir/src/*.zip" "*.ttf"  
   -d $startdir/src/$pkgname 
    
    install -d -m755 $startdir/pkg/usr/X11R6/lib/X11/fonts/TTF 

    install -m644 $startdir/src/${pkgname}/*  
            $startdir/pkg/usr/X11R6/lib/X11/fonts/TTF 

} 

ttf-pl2-fonts (freeware for non-commercial use)

pkgname=ttf-pl2-fonts 
pkgver=1.0 
pkgrel=1 
pkgdesc="TrueType (TTF) fonts with Polish characters (freeware for non-commercial use)" 
depends=('x-server') 
makedepends=('unzip' 'rar') 
install=ttf-pl-fonts.install 
source=( 
'ftp://download.idg.pl/7201/czcionki/polskie.zip'  
'ftp://download.idg.pl/7201/czcionki/polskie2.zip'  
'ftp://download.idg.pl/7201/czcionki/polskie3.zip'  
'ftp://download.idg.pl/7201/czcionki/polskie4.zip'  
'ftp://download.idg.pl/7201/czcionki/polskie5.zip'  
'ftp://download.idg.pl/7201/czcionki/polskie6.zip'  
'ftp://download.idg.pl/7201/czcionki/polskie7.zip'  
'ftp://download.idg.pl/7201/czcionki/polskie8.zip'  
'ftp://download.idg.pl/7201/czcionki/polskie9.zip'  
'ftp://download.idg.pl/7201/czcionki/polskie10.zip'  
'ftp://download.idg.pl/7201/czcionki/polskie11.zip'  
'ftp://download.idg.pl/7201/czcionki/polskie12.zip'  
'ftp://download.idg.pl/7201/czcionki/polskie13.zip'  
'ftp://download.idg.pl/7201/czcionki/polskie14.zip'  
'ftp://download.idg.pl/7201/czcionki/polskie15.zip'  
'ftp://download.idg.pl/7201/czcionki/polskie16.zip'  
'ftp://download.idg.pl/7201/czcionki/polskie17.zip'  
'http://www.nowak.tv/fontoholic/uploads/download/zip/hieroglify.zip'  
'http://www.nowak.tv/fontoholic/uploads/download/zip/innafonta.zip'  
'http://www.nowak.tv/fontoholic/uploads/download/zip/ministrzalki.zip'  
'http://www.nowak.tv/fontoholic/uploads/download/zip/barbarjowepisanki.zip'  
'http://www.nowak.tv/fontoholic/uploads/download/zip/rittswoodclassic_08.zip'  
'http://www.nowak.tv/fontoholic/uploads/download/zip/rittswoodplaza_8.zip'  
'http://www.nowak.tv/fontoholic/uploads/download/zip/rittswoodyoung_08.zip'  
'http://www.nowak.tv/fontoholic/uploads/download/zip/rittswoodyoungex_7.zip'  
'http://www.nowak.tv/fontoholic/uploads/download/zip/rittswoodoffice_lg.zip'  
'http://www.nowak.tv/fontoholic/uploads/download/zip/rittswoodimpresive_6.zip'  
'http://www.nowak.tv/fontoholic/uploads/download/zip/rittswoodprofile_6.zip'  
'http://www.nowak.tv/fontoholic/uploads/download/zip/artur.zip'  
'http://www.nowak.tv/fontoholic/uploads/download/zip/battlefield.zip'  
'http://www.nowak.tv/fontoholic/uploads/download/zip/weronika.zip'  
'http://www.nowak.tv/fontoholic/uploads/download/zip/art.zip'  
) 

md5sums=('2d791a749a7d34e328f49af1e8fefc4e' '85630168876ed7103c155d99c9fccd1a' 
'ba21e3a721ac685de30c986a6f76bce0' '8cfe9b69d9c0e30048ef2dbc216720a7' 
'451b75c99af5745b9a5d4827b095ef48' '38239748f71f4e01ebd6e540f72ab801' 
'3bc9729e4e37a86fcba598fc3e706fb7' '6fe9a9c68607ce39690b8d63879c4e8a' 
'98a8d835eaeee2932ea0bae9a58dc908' 'd61d326c4ebb83656edf44292f589bc3' 
'0ba8c7c4797e5431526a252b00a478d6' 'db2a885357e039ecc4e2065a5180ab7a' 
'90c9644740152b280be4ef6a807a94ef' 'f72747367eb8cd3ad798cf2a098abfb1' 
'991c4fcea4cb6477f4c1b5dd6ca4479b' 'd124454aec82e899eeddcf01116ff856' 
'2058e42dbf3b1ecc8e29bfdd8e7cb774' 'fd557b6d92045185638bd857799011b5' 
'199f74e453528026d503ccbe4ae2756c' 'f24f2f8926e1798fc1dbd9ec53295cfc' 
'281b45f3a34a39fc731ff83191107faf' '2a8777c222a99ab9b0ae2a3bbbbebfa2' 
'65d7d5a077ef762ed314c14198650563' 'e8c13e01c7aab4054becfab839ed157e' 
'459b009e938a607f33eb2c6dfdd947b3' 'c0ccff6aa13665743a388225cc57a84b' 
'd0f7d67ab0e3b87ea76603bb3469ead0' '7887be417769742da7797e09388efec6' 
'58101c17676b861419ba6bf48990dec1' 'f41ac71e8ffa45d10ce7cfdd3161ec4d' 
'fe50f947f80ea46c4dda0f0235ccb643' '1b2ae8080c045ef25cfe6b2eb66298cf' 
) 

build() { 

    rm -f $startdir/src/polskie*.zip 

    /usr/bin/unzip -Cjoq "$startdir/src/*.zip" "*.ttf"  
   -d $startdir/src/$pkgname 
    
    /usr/bin/unrar e -inul -o+ -y "$startdir/src/*.rar" "*.ttf"  
   $startdir/src/$pkgname 
    
    install -d -m755 $startdir/pkg/usr/X11R6/lib/X11/fonts/TTF 

    install -m644 $startdir/src/${pkgname}/*  
            $startdir/pkg/usr/X11R6/lib/X11/fonts/TTF 

} 

Offline

Board footer

Powered by FluxBB