summaryrefslogtreecommitdiff
path: root/system/ttf-sil-gentium/ttf-sil-gentium.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/ttf-sil-gentium/ttf-sil-gentium.SlackBuild')
-rw-r--r--system/ttf-sil-gentium/ttf-sil-gentium.SlackBuild28
1 files changed, 8 insertions, 20 deletions
diff --git a/system/ttf-sil-gentium/ttf-sil-gentium.SlackBuild b/system/ttf-sil-gentium/ttf-sil-gentium.SlackBuild
index 914eb5f5b3..ba8b562f75 100644
--- a/system/ttf-sil-gentium/ttf-sil-gentium.SlackBuild
+++ b/system/ttf-sil-gentium/ttf-sil-gentium.SlackBuild
@@ -3,43 +3,31 @@
# Slackware build script for ttf-sil-gentium
# Written by Kyle Guinn
-# Modified by the SlackBuilds.org project
-
-set -e
-
PRGNAM=ttf-sil-gentium
VERSION=1.02
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-CWD=`pwd`
+
+CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+set -e
+
rm -rf $PKG
-mkdir -p $TMP $PKG
+mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-# First, if the source was pulled with wget, then it might not get named
-# correctly - let's fix that
-if [ -e "$CWD/render_download.php?site_id=nrsi&format=file&media_id=Gentium_102_L_tar&filename=%2Fttf-sil-gentium_1.0.2.tar.gz" ]; then
- mv "$CWD/render_download.php?site_id=nrsi&format=file&media_id=Gentium_102_L_tar&filename=%2Fttf-sil-gentium_1.0.2.tar.gz" \
- "$CWD/-ttf-sil-gentium_1.0.2.tar.gz"
-fi
-
-# Watch out for the name of this tarball - the leading '-' might cause problems
-# To remove it, try `rm /path/to/-ttf-sil-gentium_1.0.2.tar.gz`
-# or rm -- -ttf-sil-gentium_1.0.2.tar.gz
-tar -xzvf $CWD/\-ttf-sil-gentium_1.0.2.tar.gz || exit 1
+tar xvf $CWD/ttf-gentium_$VERSION.orig.tar.gz || exit 1
cd $PRGNAM-$VERSION || exit 1
-
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-mkdir -p $PKG/usr/share/fonts
-cp -a *.ttf $PKG/usr/share/fonts
+mkdir -p $PKG/usr/share/fonts/TTF
+cp -a *.ttf $PKG/usr/share/fonts/TTF
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a FONTLOG GENTIUM-FAQ OFL* README $PKG/usr/doc/$PRGNAM-$VERSION