summaryrefslogtreecommitdiff
path: root/system/webcore-fonts/webcore-fonts.SlackBuild
diff options
context:
space:
mode:
authorDugan Chen <dugan [underscore] c [at] fastmail [dot] fm>2010-05-11 22:55:37 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:55:37 +0200
commitea84d1a5488cc81d48524e9f122c2f48172d1f0f (patch)
treed0dd3171ce1a98bea95687552b947b81dd230c94 /system/webcore-fonts/webcore-fonts.SlackBuild
parent1f750cab57ee9154b25f76a5136f173fffd1ef77 (diff)
downloadslackbuilds-ea84d1a5488cc81d48524e9f122c2f48172d1f0f.tar.gz
system/webcore-fonts: Added to 12.1 repository
Diffstat (limited to 'system/webcore-fonts/webcore-fonts.SlackBuild')
-rw-r--r--system/webcore-fonts/webcore-fonts.SlackBuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/system/webcore-fonts/webcore-fonts.SlackBuild b/system/webcore-fonts/webcore-fonts.SlackBuild
new file mode 100644
index 0000000000..d0c3b2a37f
--- /dev/null
+++ b/system/webcore-fonts/webcore-fonts.SlackBuild
@@ -0,0 +1,52 @@
+#!/bin/sh
+
+# Slackware build script for webcore-fonts
+
+# Written by Dugan Chen (dugan [underscore] c [at] fastmail [dot] fm)
+# Modified by SlackBuilds.org
+
+PRGNAM=webcore-fonts
+VERSION=${VERSION:-3.0}
+ARCH=${ARCH:-noarch}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+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
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+mkdir -p $PKG/usr/share/fonts/TTF
+cp fonts/* $PKG/usr/share/fonts/TTF
+cp vista/* $PKG/usr/share/fonts/TTF
+
+mkdir -p $PKG/etc/fonts/conf.avail
+cp $CWD/35-webcore-fonts.conf $PKG/etc/fonts/conf.avail
+cp $CWD/25-noautohint-corefonts.conf $PKG/etc/fonts/conf.avail
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a doc/* $PKG/usr/doc/$PRGNAM-$VERSION
+rm $PKG/usr/doc/$PRGNAM-$VERSION/index.html.new
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$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.tgz