diff options
Diffstat (limited to 'system/gigolo/gigolo.SlackBuild')
-rw-r--r-- | system/gigolo/gigolo.SlackBuild | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/system/gigolo/gigolo.SlackBuild b/system/gigolo/gigolo.SlackBuild index 6d17bbbb5a..e996da4674 100644 --- a/system/gigolo/gigolo.SlackBuild +++ b/system/gigolo/gigolo.SlackBuild @@ -1,13 +1,16 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for gigolo # Written by Luis Henrique <lmello.009@gmail.com> +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=gigolo VERSION=${VERSION:-0.4.1} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -17,7 +20,14 @@ if [ -z "$ARCH" ]; then esac fi -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} @@ -68,11 +78,9 @@ if [ x"${GNOMEMOUNT:-"yes"}" = "xyes" ]; then chmod 0755 $PKG/usr/bin/gnome-mount fi -# Strip binaries and libraries find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -# Compress man pages find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done @@ -85,4 +93,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 |