diff options
Diffstat (limited to 'system/webcore-fonts/webcore-fonts.SlackBuild')
-rw-r--r-- | system/webcore-fonts/webcore-fonts.SlackBuild | 52 |
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 |