diff options
Diffstat (limited to 'system/ttf-dark-courier/ttf-dark-courier.SlackBuild')
-rw-r--r-- | system/ttf-dark-courier/ttf-dark-courier.SlackBuild | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/system/ttf-dark-courier/ttf-dark-courier.SlackBuild b/system/ttf-dark-courier/ttf-dark-courier.SlackBuild index 8c485459c9..13b697a3c5 100644 --- a/system/ttf-dark-courier/ttf-dark-courier.SlackBuild +++ b/system/ttf-dark-courier/ttf-dark-courier.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for ttf-dark-courier @@ -22,21 +22,31 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=ttf-dark-courier -VERSION=${VERSION:-01182001} +VERSION=${VERSION:-1.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} set -e -SRCNAM="DarkCourier" +SRCNAM="dark-courier" rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -44,8 +54,13 @@ cd $TMP rm -rf $SRCNAM $PRGNAM-$VERSION unzip $CWD/$SRCNAM.zip mkdir $PRGNAM-$VERSION/ -mv dour*.ttf $PRGNAM-$VERSION/ +mv *.ttf $PRGNAM-$VERSION/ +rm *.txt cd $PRGNAM-$VERSION + +#Remove duplicates +find . -type f -name "*.ttf" -name "* *" -exec rm {} \; + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -57,7 +72,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/share/fonts/TTF -install -Dm644 dour*.ttf $PKG/usr/share/fonts/TTF/ +install -Dm644 *.ttf $PKG/usr/share/fonts/TTF/ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -67,4 +82,4 @@ 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.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |