mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-04 20:29:09 +01:00
system/courier-prime: Added (Free Courier and Courier-like font).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
7dca321603
commit
a8a0566fc7
5 changed files with 115 additions and 0 deletions
10
system/courier-prime/README
Normal file
10
system/courier-prime/README
Normal file
|
@ -0,0 +1,10 @@
|
|||
A fully free (SIL Open Font License) Courier font, complete with a true italics face and a rich unicode glyph set.
|
||||
|
||||
Included in this SlackBuild script are the other members of the Courier Prime family:
|
||||
|
||||
- Courier Prime: a free Courier replacement
|
||||
|
||||
- Courier Prime Sans: Courier Prime, sans serif
|
||||
|
||||
- Courier Prime Source: Courier sans for programmers (slashes
|
||||
through zeros, baseline asterisks, and so on)
|
62
system/courier-prime/courier-prime.SlackBuild
Normal file
62
system/courier-prime/courier-prime.SlackBuild
Normal file
|
@ -0,0 +1,62 @@
|
|||
#!/bin/sh
|
||||
# Slackware build script for Courier Prime
|
||||
# Copyright 2015 klaatu@member.fsf.org
|
||||
#
|
||||
# GNU All-Permissive License
|
||||
# Copying and distribution of this file, with or without modification,
|
||||
# are permitted in any medium without royalty provided the copyright
|
||||
# notice and this notice are preserved. This file is offered as-is,
|
||||
# without any warranty.
|
||||
|
||||
PRGNAM=courier-prime
|
||||
VERSION='03142015'
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
ARCH=noarch
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
set -eu
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rvf $PRGNAM
|
||||
rm -rvf $TMP/`echo $PRGNAM | cut -f1 -d'-'`-{prime,sans,source}
|
||||
|
||||
# grab one copy of OFL info
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM
|
||||
unzip -vjo $CWD/$PRGNAM.zip "Courier Prime/LICENSE/*" -d $PKG/usr/doc/$PRGNAM || exit 1
|
||||
|
||||
# install the fonts
|
||||
mkdir -p $PKG/usr/share/fonts/TTF
|
||||
unzip -jo $CWD/courier-prime.zip "Courier*/Courier*ttf" -d $PKG/usr/share/fonts/TTF
|
||||
unzip -jo $CWD/courier-sans.zip "Courier*/ttf/Courier*ttf" -d $PKG/usr/share/fonts/TTF
|
||||
unzip -jo $CWD/courier-source.zip "Courier*/ttf/Courier*ttf" -d $PKG/usr/share/fonts/TTF
|
||||
|
||||
cd $PKG
|
||||
|
||||
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 {} \;
|
||||
|
||||
# grab the docs, such as they are
|
||||
unzip -vjp $CWD/$PRGNAM.zip "Courier Prime/Read*txt" > $PKG/usr/doc/$PRGNAM/readme-prime.txt || exit 1
|
||||
unzip -vjp $CWD/courier-sans.zip "Courier*/README.md" > $PKG/usr/doc/$PRGNAM/readme-sans.md || exit 1
|
||||
unzip -vjp $CWD/courier-source.zip "Courier*/README.md" > $PKG/usr/doc/$PRGNAM/readme-source.md || exit 1
|
||||
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM/$PRGNAM.SlackBuild
|
||||
|
||||
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}
|
14
system/courier-prime/courier-prime.info
Normal file
14
system/courier-prime/courier-prime.info
Normal file
|
@ -0,0 +1,14 @@
|
|||
PRGNAM="courier-prime"
|
||||
VERSION="03142015"
|
||||
HOMEPAGE="http://quoteunquoteapps.com/courierprime/"
|
||||
DOWNLOAD="http://quoteunquoteapps.com/downloads/courier-prime.zip \
|
||||
http://quoteunquoteapps.com/downloads/courier-sans.zip \
|
||||
http://quoteunquoteapps.com/downloads/courier-source.zip"
|
||||
MD5SUM="cf79336ce1cf439560a5364ab7856738 \
|
||||
865df64ca03a2b3b596dd61d943cb9bf \
|
||||
7df1a6a7bfe16220c76a2ce395d7a9ab"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Klaatu"
|
||||
EMAIL="klaatu@member.fsf.org"
|
10
system/courier-prime/doinst.sh
Normal file
10
system/courier-prime/doinst.sh
Normal file
|
@ -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
|
19
system/courier-prime/slack-desc
Normal file
19
system/courier-prime/slack-desc
Normal file
|
@ -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------------------------------------------------------|
|
||||
courier-prime: courier-prime (Free Courier and Courier-like font set)
|
||||
courier-prime:
|
||||
courier-prime: Courier Prime*, specially designed for screenplays.
|
||||
courier-prime: Courier Sans, a courier-like font without serifs.
|
||||
courier-prime: Courier Source, another courier-like font without serifs "optimized
|
||||
courier-prime: for programmers".
|
||||
courier-prime: Released under the SIL Open Font License
|
||||
courier-prime:
|
||||
courier-prime: *Apologies to the Slackware logo.
|
||||
courier-prime:
|
||||
courier-prime: http://quoteunquoteapps.com/courierprime/
|
Loading…
Reference in a new issue