slackbuilds_ponce/system/ttf-sil-gentium/ttf-sil-gentium.SlackBuild

42 lines
914 B
Text
Raw Normal View History

2010-05-11 15:18:46 +02:00
#!/bin/sh
# Slackware build script for ttf-sil-gentium
# Written by Kyle Guinn
PRGNAM=ttf-sil-gentium
VERSION=1.02
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
2010-05-11 15:18:46 +02:00
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -e
2010-05-11 15:18:46 +02:00
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
2010-05-11 15:18:46 +02:00
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/ttf-gentium_$VERSION.orig.tar.gz || exit 1
2010-05-11 15:18:46 +02:00
cd $PRGNAM-$VERSION || exit 1
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
mkdir -p $PKG/usr/share/fonts/TTF
cp -a *.ttf $PKG/usr/share/fonts/TTF
2010-05-11 15:18:46 +02:00
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a FONTLOG GENTIUM-FAQ OFL* README $PKG/usr/doc/$PRGNAM-$VERSION
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 -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz