updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / ttf-vista-fonts / PKGBUILD
bloba2a474fa04555c21e7ab815fc70f5c70e4bfd770
1 # Contributor: mutlu_inek <mutlu_inek@yahoo.de>
3 pkgname=ttf-vista-fonts
4 pkgver=1
5 pkgrel=3
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"
8 license=(custom)
9 arch=('any')
10 depends=('fontconfig' 'xorg-font-utils')
11 makedepends=(cabextract)
12 conflicts=('ttf-ms-extrafonts')
13 provides=()
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')
19 build() {
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