diff options
Diffstat (limited to 'graphics/white_dune/white_dune.SlackBuild')
-rw-r--r-- | graphics/white_dune/white_dune.SlackBuild | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/graphics/white_dune/white_dune.SlackBuild b/graphics/white_dune/white_dune.SlackBuild index 72e4c0d55a..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.486} +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} @@ -79,7 +89,8 @@ export CXXFLAGS="$SLKCFLAGS -std=c++11" make install -c -d $PKG/install $PKG/usr/bin $PKG/usr/man/man1 -cp bin/* /$PKG/usr/bin +cp -a bin/* /$PKG/usr/bin +cp -a tools/run_dune_and_aqsis.sh /$PKG/usr/bin install -c -m 644 ./man/dune.1 /$PKG/usr/man/man1 install -c -d $PKG/usr/doc/$PRGNAM-$VERSION cp -fr docs $PKG/usr/doc/$PRGNAM-$VERSION @@ -87,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 @@ -98,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 + |