diff options
author | Kyle Guinn <elyk03@gmail.com> | 2010-05-11 19:46:42 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 19:46:42 +0200 |
commit | 1a743c5fbe5d588b38c021bffea42ed6f62cc64a (patch) | |
tree | cc3356121aaed3a64c29c177821363b5152a0ffd /system/ttf-sil-gentium/ttf-sil-gentium.SlackBuild | |
parent | 2c47221a990bd45652eeb83df0d35f49e55afdb6 (diff) |
system/ttf-sil-gentium: Updated for version 1.02
Diffstat (limited to 'system/ttf-sil-gentium/ttf-sil-gentium.SlackBuild')
-rw-r--r-- | system/ttf-sil-gentium/ttf-sil-gentium.SlackBuild | 28 |
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 914eb5f5b3937..ba8b562f7515d 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 |