From ea84d1a5488cc81d48524e9f122c2f48172d1f0f Mon Sep 17 00:00:00 2001 From: Dugan Chen Date: Tue, 11 May 2010 22:55:37 +0200 Subject: system/webcore-fonts: Added to 12.1 repository --- system/webcore-fonts/webcore-fonts.SlackBuild | 52 +++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 system/webcore-fonts/webcore-fonts.SlackBuild (limited to 'system/webcore-fonts/webcore-fonts.SlackBuild') 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 -- cgit v1.2.3