summaryrefslogtreecommitdiffstats
path: root/graphics/white_dune/white_dune.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/white_dune/white_dune.SlackBuild')
-rw-r--r--graphics/white_dune/white_dune.SlackBuild25
1 files changed, 21 insertions, 4 deletions
diff --git a/graphics/white_dune/white_dune.SlackBuild b/graphics/white_dune/white_dune.SlackBuild
index c918564ff9..f1152dd2ac 100644
--- a/graphics/white_dune/white_dune.SlackBuild
+++ b/graphics/white_dune/white_dune.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for white_dune
@@ -22,11 +22,14 @@
# 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=white_dune
SRCNAM=wdune
-VERSION=${VERSION:-1.654}
+VERSION=${VERSION:-1.876}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -36,7 +39,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}
@@ -88,6 +98,12 @@ install -D -m 0644 desktop/kde/dune.desktop \
$PKG/usr/share/applications/dune.desktop
install -D -m 0644 desktop/kde/dune.png \
$PKG/usr/share/pixmaps/dune.png
+install -D -m 644 -p include/white_dune/libC++RWD_namespace.h \
+ $PKG/usr/include/white_dune/libC++RWD_namespace.h
+install -D -m 644 -p include/white_dune/libC++RWD.h \
+ $PKG/usr/include/white_dune/libC++RWD.h
+install -D -m 644 -p include/white_dune/libCRWD.h \
+ $PKG/usr/include/white_dune/libCRWD.h
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
@@ -99,4 +115,5 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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
+