aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorAlexander Verbovetsky <alik@ejik.org>2016-09-24 07:03:04 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-09-24 07:03:04 +0700
commit4b3fc19850960b951dbdcd946588605d7954eef0 (patch)
treeff30b12aa5255faf6c89b6d5458dd6b837a1ba92 /system
parent3bee876ca0ad65682c521172060599674628c210 (diff)
system/ttf-paratype-pt-fonts: Added (Public Type (PT) fonts).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/ttf-paratype-pt-fonts/48-ttf-paratype-pt-fonts.conf17
-rw-r--r--system/ttf-paratype-pt-fonts/README23
-rw-r--r--system/ttf-paratype-pt-fonts/doinst.sh10
-rw-r--r--system/ttf-paratype-pt-fonts/slack-desc19
-rw-r--r--system/ttf-paratype-pt-fonts/ttf-paratype-pt-fonts.SlackBuild75
-rw-r--r--system/ttf-paratype-pt-fonts/ttf-paratype-pt-fonts.info14
6 files changed, 158 insertions, 0 deletions
diff --git a/system/ttf-paratype-pt-fonts/48-ttf-paratype-pt-fonts.conf b/system/ttf-paratype-pt-fonts/48-ttf-paratype-pt-fonts.conf
new file mode 100644
index 0000000000000..505abd0398ae4
--- /dev/null
+++ b/system/ttf-paratype-pt-fonts/48-ttf-paratype-pt-fonts.conf
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<!-- Map PT fonts families to their generics -->
+<fontconfig>
+ <alias>
+ <family>PT Sans</family>
+ <default><family>sans-serif</family></default>
+ </alias>
+ <alias>
+ <family>PT Serif</family>
+ <default><family>serif</family></default>
+ </alias>
+ <alias>
+ <family>PT Mono</family>
+ <default><family>monospace</family></default>
+ </alias>
+</fontconfig>
diff --git a/system/ttf-paratype-pt-fonts/README b/system/ttf-paratype-pt-fonts/README
new file mode 100644
index 0000000000000..551e37c317593
--- /dev/null
+++ b/system/ttf-paratype-pt-fonts/README
@@ -0,0 +1,23 @@
+The Public Type (PT) fonts are free OFL licensed fonts released in
+2009-2011 by the ParaType company. They consists of PT Sans (includes 8
+styles), PT Serif (6 styles), and PT Mono (2 styles) families.
+
+The fonts cover a long list of Eurasian languages based on Latin and
+Cyrillic scripts.
+
+The PT fonts were primarily designed by Alexandra Korolkova.
+
+The texlive-fonts package contains a different variant of PT fonts in
+/usr/share/texmf-dist/fonts/truetype/paratype/
+The present package contains fonts with the truetype specific
+hhea-metrics adapted for linux environment.
+
+PT fonts are primarily designed to be used with subpixel hinting (aka
+ClearType) activated.
+
+When using subpixel hinting, it is recommended to disable embedded
+bitmaps for these fonts by using the following fontconfig setting:
+
+<edit name="embeddedbitmap" mode="assign">
+ <bool>false</bool>
+</edit>
diff --git a/system/ttf-paratype-pt-fonts/doinst.sh b/system/ttf-paratype-pt-fonts/doinst.sh
new file mode 100644
index 0000000000000..883c47ac0a60c
--- /dev/null
+++ b/system/ttf-paratype-pt-fonts/doinst.sh
@@ -0,0 +1,10 @@
+# Update the X font indexes:
+if [ -x /usr/bin/mkfontdir ]; then
+ ( cd /usr/share/fonts/TTF
+ mkfontscale .
+ mkfontdir .
+ )
+fi
+if [ -x /usr/bin/fc-cache ]; then
+ /usr/bin/fc-cache -f
+fi
diff --git a/system/ttf-paratype-pt-fonts/slack-desc b/system/ttf-paratype-pt-fonts/slack-desc
new file mode 100644
index 0000000000000..0ccef1845cb54
--- /dev/null
+++ b/system/ttf-paratype-pt-fonts/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+ttf-paratype-pt-fonts: ttf-paratype-pt-fonts (Public Type (PT) fonts by ParaType)
+ttf-paratype-pt-fonts:
+ttf-paratype-pt-fonts: The Public Type (PT) fonts are free OFL licensed fonts released in
+ttf-paratype-pt-fonts: 2009-2011 by the ParaType company. They consists of PT Sans (includes
+ttf-paratype-pt-fonts: 8 styles), PT Serif (6 styles), and PT Mono (2 styles) families.
+ttf-paratype-pt-fonts:
+ttf-paratype-pt-fonts: The fonts cover a long list of Eurasian languages based on Latin and
+ttf-paratype-pt-fonts: Cyrillic scripts.
+ttf-paratype-pt-fonts:
+ttf-paratype-pt-fonts: Homepage: http://www.paratype.com/public/
+ttf-paratype-pt-fonts:
diff --git a/system/ttf-paratype-pt-fonts/ttf-paratype-pt-fonts.SlackBuild b/system/ttf-paratype-pt-fonts/ttf-paratype-pt-fonts.SlackBuild
new file mode 100644
index 0000000000000..b55b37fbeab9c
--- /dev/null
+++ b/system/ttf-paratype-pt-fonts/ttf-paratype-pt-fonts.SlackBuild
@@ -0,0 +1,75 @@
+#!/bin/sh
+
+# Slackware build script for ttf-paratype-pt-fonts
+
+# Copyright 2016, Alexander Verbovetsky, Moscow, Russia
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=ttf-paratype-pt-fonts
+VERSION=${VERSION:-2.5_1.2_1.3} # Sans_Serif_Mono
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+ARCH=noarch
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+mkdir -p $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+unzip $CWD/PTSansOFL.zip
+rm PTSSM_OFL.txt
+unzip $CWD/PTSerifOFL.zip
+rm PTSSM_OFL.txt
+unzip $CWD/PTMonoOFL.zip
+
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+mkdir -p $PKG/usr/share/fonts/TTF
+cp -a *.ttf $PKG/usr/share/fonts/TTF
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a PTSSM_OFL.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/etc/fonts/conf.{d,avail}
+cat $CWD/48-ttf-paratype-pt-fonts.conf > $PKG/etc/fonts/conf.avail/48-ttf-paratype-pt-fonts.conf
+cd $PKG/etc/fonts/conf.d
+ln -sf ../conf.avail/48-ttf-paratype-pt-fonts.conf
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/system/ttf-paratype-pt-fonts/ttf-paratype-pt-fonts.info b/system/ttf-paratype-pt-fonts/ttf-paratype-pt-fonts.info
new file mode 100644
index 0000000000000..eae0566fc767e
--- /dev/null
+++ b/system/ttf-paratype-pt-fonts/ttf-paratype-pt-fonts.info
@@ -0,0 +1,14 @@
+PRGNAM="ttf-paratype-pt-fonts"
+VERSION="2.5_1.2_1.3"
+HOMEPAGE="http://www.paratype.com/public/"
+DOWNLOAD="http://www.paratype.com/uni/public/PTSansOFL.zip \
+ http://www.paratype.com/uni/public/PTSerifOFL.zip \
+ http://www.paratype.com/uni/public/PTMonoOFL.zip"
+MD5SUM="e5b99133d3b72cd35400b5aa810ad0ee \
+ 4dd07baa86fd30977cdfabd82bf2ad1d \
+ 1c6d5c30fca24130b2888b9427a75134"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Alexander Verbovetsky"
+EMAIL="alik@ejik.org"