diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-01-13 09:08:23 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-01-13 09:09:19 +0000 |
commit | a024ec54c34ea0f908b888ee3ad955fd7d7c6428 (patch) | |
tree | b6612139036b45774d2fd72dd192d58973b03985 /testing/msttcorefonts-installer | |
parent | 859db39dd1ffc64c813d886d9fa7a4eb04e08024 (diff) | |
download | aports-a024ec54c34ea0f908b888ee3ad955fd7d7c6428.tar.bz2 aports-a024ec54c34ea0f908b888ee3ad955fd7d7c6428.tar.xz |
testing/msttcorefonts-installer: new aport
Installer for core Microsoft TrueType fonts
Diffstat (limited to 'testing/msttcorefonts-installer')
3 files changed, 79 insertions, 0 deletions
diff --git a/testing/msttcorefonts-installer/APKBUILD b/testing/msttcorefonts-installer/APKBUILD new file mode 100644 index 0000000000..b725f01b25 --- /dev/null +++ b/testing/msttcorefonts-installer/APKBUILD @@ -0,0 +1,41 @@ +# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> +pkgname=msttcorefonts-installer +pkgver=3.6 +pkgrel=0 +pkgdesc="Installer for Microsoft TrueType core fonts" +url="https://packages.debian.org/sid/ttf-mscorefonts-installer" +arch="noarch" +license="GPL" +depends="cabextract wget" +depends_dev= +makedepends="$depends_dev" +install="$pkgname.post-install" +subpackages= +source="http://http.debian.net/debian/pool/contrib/m/msttcorefonts/msttcorefonts_$pkgver.tar.gz + remove-debian-stuff.patch + " + +builddir="$srcdir"/msttcorefonts + +prepare() { + cd "$builddir" + default_prepare || return 1 +} + +build() { + cd "$builddir" +} + +package() { + cd "$builddir" + install -m755 -D update-ms-fonts "$pkgdir"/usr/bin/update-ms-fonts + install -m644 -D cabfiles.sha256sums \ + "$pkgdir"/var/lib/msttcorefonts/cabfiles.sha256sums +} + +md5sums="2ae4a78471ab4f6684847a02fa072c17 msttcorefonts_3.6.tar.gz +73f1c14674f929d0c6ef11aedc1a8d43 remove-debian-stuff.patch" +sha256sums="c23a2c519acad44fb65dfdd5b6f7de7b351ec15394df52cc744e3c6deb51d42f msttcorefonts_3.6.tar.gz +da6528a10b35f6c14b0d0a433b10aef7552833ec25c1bc399c3917c81841b97d remove-debian-stuff.patch" +sha512sums="1b91d07f10dd554376f8261213a15644f9d6f5e45bec4c1d3160530882ced73a093232c0cf30a024fce706c30df97afc867c7c70d7afe9d62bd71a081fee52d4 msttcorefonts_3.6.tar.gz +7a5fa404adcecd9a314ab448007a1c50fd4392d7712139fbc702e6e0f43160366b1c6da90d743c2b57dd1566d7e6ae9c6fc4c56106c4c6b5b29d6370df0c3361 remove-debian-stuff.patch" diff --git a/testing/msttcorefonts-installer/msttcorefonts-installer.post-install b/testing/msttcorefonts-installer/msttcorefonts-installer.post-install new file mode 100755 index 0000000000..36c7e0d0a0 --- /dev/null +++ b/testing/msttcorefonts-installer/msttcorefonts-installer.post-install @@ -0,0 +1,5 @@ +#!/bin/sh +echo "*" >&2 +echo -e "* With root permissions run \"update-ms-fonts\" and once completed" >&2 +echo -e "* run \"fc-cache -f\" in order to update the font cache" >&2 +echo -e "*" >&2 diff --git a/testing/msttcorefonts-installer/remove-debian-stuff.patch b/testing/msttcorefonts-installer/remove-debian-stuff.patch new file mode 100644 index 0000000000..52ea32bc25 --- /dev/null +++ b/testing/msttcorefonts-installer/remove-debian-stuff.patch @@ -0,0 +1,33 @@ +--- a/update-ms-fonts ++++ b/update-ms-fonts +@@ -34,7 +34,7 @@ + mstt_exit_with_error() { + echo "$1" + echo "The fonts are NOT installed." +- echo "Please run 'dpkg-reconfigure ttf-mscorefonts-installer' to perform the installation again" ++ echo "Please run 'update-ms-fonts' to perform the installation again" + exit 0 # still install the Debian package + } + +@@ -190,11 +190,6 @@ + # Give sane names. These are nearly the same names MS uses for the + # Macintosh versions + +- mkdir -p /usr/share/doc/ttf-mscorefonts-installer $FONTDIR +- if [ -e licen.txt ] ; then +- mv licen.txt '/usr/share/doc/ttf-mscorefonts-installer/READ_ME!' +- gzip -f -9 '/usr/share/doc/ttf-mscorefonts-installer/READ_ME!' +- fi + for ff in $FONTFILES; do + for ttf in `grep $ff msfonts.info | awk '{print $4}'`; do + longname=`awk "/$ttf/ { print \\$2 }" msfonts.info` +@@ -203,9 +198,6 @@ + done + done + +- # Make a note of what we installed so we can uninstall it later +- awk '{print $2}' msfonts.info > /var/lib/msttcorefonts/ms-fonts +- awk '{print $4}' msfonts.info >> /var/lib/msttcorefonts/ms-fonts + fi + + cd / |