1 # Contributor: mutlu_inek <mutlu_inek@yahoo.de>
3 pkgname=ttf-vista-fonts
6 pkgdesc="Microsoft Vista True Type Fonts"
7 url="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=048dc840-14e1-467d-8dca-19d2a8fd7485&displaylang=en"
10 depends=('fontconfig' 'xorg-font-utils')
11 makedepends=(cabextract)
12 conflicts=('ttf-ms-extrafonts')
14 replaces=('vista-fonts')
15 install=$pkgname.install
16 source=('http://download.microsoft.com/download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26/PowerPointViewer.exe')
17 md5sums=('9b4b476488674ae103d2e97cd88cd222')
20 mkdir -p $startdir/src/$pkgname-$pkgver
21 cabextract --lowercase $startdir/src/PowerPointViewer.exe -d $startdir/src/$pkgname-$pkgver
22 cabextract --lowercase $startdir/src/$pkgname-$pkgver/ppviewer.cab -d $startdir/src/$pkgname-$pkgver
23 mkdir -p $startdir/pkg/usr/share/fonts/TTF
24 install -m644 $startdir/src/$pkgname-$pkgver/*.{ttf,ttc} $startdir/pkg/usr/share/fonts/TTF
25 mv $startdir/src/$pkgname-$pkgver/eula.txt $startdir/src/$pkgname-$pkgver/license.txt
26 mkdir -p $startdir/pkg/usr/share/licenses/$pkgname
27 install -D -m644 $startdir/src/$pkgname-$pkgver/license.txt $startdir/pkg/usr/share/licenses/$pkgname