summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn D Jones III2015-06-16 16:23:12 -0600
committerJohn D Jones III2015-06-16 16:23:12 -0600
commitbca74f769fda111125af889c8b5fa64253fe2a3d (patch)
tree55a529d89219dbe8f8880618ab3a1cf918127c16
downloadaur-bca74f769fda111125af889c8b5fa64253fe2a3d.tar.gz
Initial import
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD34
-rw-r--r--ttf-vista-fonts.install33
3 files changed, 86 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..953de453771
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = ttf-vista-fonts
+ pkgdesc = Microsoft Vista True Type Fonts
+ pkgver = 1
+ pkgrel = 8
+ url = http://www.microsoft.com/en-us/download/confirmation.aspx?id=13
+ install = ttf-vista-fonts.install
+ arch = any
+ license = custom
+ makedepends = fontforge
+ makedepends = fontconfig
+ makedepends = xorg-font-utils
+ makedepends = cabextract
+ conflicts = ttf-ms-extrafonts
+ replaces = vista-fonts
+ source = http://download.microsoft.com/download/E/6/7/E675FFFC-2A6D-4AB0-B3EB-27C9F8C8F696/PowerPointViewer.exe
+ md5sums = 35ff8ebbea457ba426b47ff6d8377284
+
+pkgname = ttf-vista-fonts
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4fa64ca8bba
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Contributor: mutlu_inek <mutlu_inek@yahoo.de>
+# Maintainer: jnbek print "<",join('', qw(j n b e k 1 9 7 2),"_AT_ geeee mail __DOT__ com",">\n";
+pkgname=ttf-vista-fonts
+pkgver=1
+pkgrel=8
+pkgdesc="Microsoft Vista True Type Fonts"
+url="http://www.microsoft.com/en-us/download/confirmation.aspx?id=13"
+license=('custom')
+arch=('any')
+depends=()
+makedepends=('fontforge' 'fontconfig' 'xorg-font-utils' 'cabextract')
+conflicts=('ttf-ms-extrafonts')
+provides=()
+replaces=('vista-fonts')
+install=$pkgname.install
+source=('http://download.microsoft.com/download/E/6/7/E675FFFC-2A6D-4AB0-B3EB-27C9F8C8F696/PowerPointViewer.exe')
+md5sums=('35ff8ebbea457ba426b47ff6d8377284')
+
+package() {
+ mkdir -p "$srcdir/$pkgname-$pkgver"
+ cabextract --lowercase "$srcdir/PowerPointViewer.exe" -d "$srcdir/$pkgname-$pkgver"
+ cabextract --lowercase -F '*.tt[fc]' "$srcdir/$pkgname-$pkgver/ppviewer.cab" -d "$srcdir/$pkgname-$pkgver"
+
+ # cambria.ttc is a TrueType Collection (TTC) which causes problems with
+ # LibreOffice (Cambria Regular cannot be selected) so we need to convert
+ # the TTC into a TrueType Font (TTF).
+ cd "$srcdir/$pkgname-$pkgver"
+ FONTFORGE_LANGUAGE=ff fontforge -c 'Open("cambria.ttc"); Generate("cambria.ttf")'
+ rm cambria.ttc
+
+ mkdir -p "$pkgdir/usr/share/fonts/TTF"
+ install -m644 "$srcdir"/$pkgname-$pkgver/*.{ttf,ttc} "$pkgdir/usr/share/fonts/TTF"
+ install -Dm644 "$srcdir/$pkgname-$pkgver/eula" "$pkgdir/usr/share/licenses/$pkgname/EULA"
+}
diff --git a/ttf-vista-fonts.install b/ttf-vista-fonts.install
new file mode 100644
index 00000000000..7d5202312c1
--- /dev/null
+++ b/ttf-vista-fonts.install
@@ -0,0 +1,33 @@
+post_install() {
+ echo -n "rebuilding font cache... "
+ fc-cache /usr/share/fonts/TTF
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done."
+}
+
+post_upgrade() {
+ echo -n "rebuilding font cache... "
+ fc-cache /usr/share/fonts/TTF
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done."
+}
+
+pre_remove() {
+ /bin/true
+}
+
+# arg 1: the old package version
+post_remove() {
+ echo -n "rebuilding font cache... "
+ fc-cache /usr/share/fonts/TTF
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done."
+}
+
+op=$1
+shift
+
+$op $*