[aur-general] New PKGBUILD for consideration "ttf-apple"

Kirill Churin reflexing at reflexing.ru
Fri Jan 18 03:04:47 EST 2013


On Thu, Jan 17, 2013 at 9:38 PM, <archlinux at jelmail.com> wrote:

> Hello,
>
> I was messing around with my fonts today and decided to get some new ones.
> There are several packages of apple fonts on the AUR but I had issues with
> some of the fonts not being recognised by LibreOffice (due to it seemingly
> being unable to read ttc - truetype font collection - files) so I thought
> I'd fix that issue and bring the various font collections together into a
> single package for my own use, but I wondered if this sort of thing would
> be useful to others.
>
> The pkgbuild is below. Let me know if I should upload this package.
>
> Thanks.
>
> # Maintainer: John Lane <archlinux at jelmail dot com>
> # Based on ttf-mac by Guten Ye (https://github.com/GutenYe/**
> aur/tree/master/ttf-mac<https://github.com/GutenYe/aur/tree/master/ttf-mac>
> )
> #          ttf-mac-fonts by Shanto (at hotmail.com)
> #          macfonts by Erus <erus.iluvatar at gmail.com>
>
> # This packages Apple font packs obtained from multiple
> # sources.  Where the same font is in multiple packs,
> # this package will contain the one from the last pack
> # processed.
>
> pkgname=ttf-apple
> pkgver=0
> pkgrel=1
> pkgdesc='A collection of Apple Mac/OS X TrueType fonts'
> arch=('any')
> url='http://www.apple.com/osx/**'
> license=('custom')
> depends=('fontconfig')
> makedepends=('subversion' 'fondu' 'fontforge')
> conflicts=('ttf-mac-fonts' 'ttf-mac' 'macfonts')
> provides=('ttf-mac-fonts' 'ttf-mac' 'macfonts')
> install='install'
>
> source=(http://invisible-**files.googlecode.com/files/**
> ttf-mac-fonts.tar.gz<http://invisible-files.googlecode.com/files/ttf-mac-fonts.tar.gz>
>         http://ompldr.org/vNXFlNA)
>
> md5sums=('**4f84a9630c3c8faf1f4ba8ea075108**bc'
>          '**e185688cf54a2f2020a4bc071316b6**7b')
>
> build() {
>
>   # font pack from https://macbuntu.svn.**sourceforge.net/svnroot/**
> macbuntu/Macbuntu/fonts<https://macbuntu.svn.sourceforge.net/svnroot/macbuntu/Macbuntu/fonts>
>   svn co https://macbuntu.svn.**sourceforge.net/svnroot/**
> macbuntu/Macbuntu/fonts<https://macbuntu.svn.sourceforge.net/svnroot/macbuntu/Macbuntu/fonts>"$srcdir/macbunt
> u"
>
>   # font pack from http://invisible-files.**googlecode.com/files/ttf-mac-*
> *fonts.tar.gz<http://invisible-files.googlecode.com/files/ttf-mac-fonts.tar.gz>
>   cd "$srcdir/ttf-mac-fonts"
>   fondu -force *.dfont
>   for ttc in *.ttc; do
>       ttf=${ttc%.*}.ttf
>       [[ -f $ttf ]] || FONTFORGE_LANGUAGE=ff fontforge -c 'Open($1);
> Generate($2)' $ttc $ttf
>   done
> }
>
> package() {
>
>   # font pack from http://ompldr.org/vNXFlNA
>   cd "$srcdir/macfonts"
>   install -d $pkgdir/usr/share/fonts/{TTF,**Type1}
>   install *.ttf $pkgdir/usr/share/fonts/TTF
>   install *.PFB $pkgdir/usr/share/fonts/Type1
>
>   # font pack from https://macbuntu.svn.**sourceforge.net/svnroot/**
> macbuntu/Macbuntu/fonts<https://macbuntu.svn.sourceforge.net/svnroot/macbuntu/Macbuntu/fonts>
>   cd "$srcdir/macbuntu"
>   install -d $pkgdir/usr/share/fonts/{TTF,**Type1}
>   install gbk/*.ttf $pkgdir/usr/share/fonts/TTF
>   install mac/*.ttf $pkgdir/usr/share/fonts/TTF
>   install mac/*.pfb $pkgdir/usr/share/fonts/Type1
>
>   # font pack from http://invisible-files.**googlecode.com/files/ttf-mac-*
> *fonts.tar.gz<http://invisible-files.googlecode.com/files/ttf-mac-fonts.tar.gz>
>   cd "$srcdir/ttf-mac-fonts"
>   install -dm755 "$pkgdir/usr/share/fonts/TTF"
>   install -m644 *.ttf *.ttc "$pkgdir/usr/share/fonts/TTF"
> }
>
>
So one can easily pirate Apple fonts now? Nicely done!

-- 
Kirill Churin
Jabber: reflexing at reflexing.ru


More information about the aur-general mailing list