aboutsummaryrefslogtreecommitdiff
path: root/multimedia/dssi/dssi.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/dssi/dssi.SlackBuild')
-rw-r--r--multimedia/dssi/dssi.SlackBuild16
1 files changed, 14 insertions, 2 deletions
diff --git a/multimedia/dssi/dssi.SlackBuild b/multimedia/dssi/dssi.SlackBuild
index b60d99b0473da..b13230d31927d 100644
--- a/multimedia/dssi/dssi.SlackBuild
+++ b/multimedia/dssi/dssi.SlackBuild
@@ -2,15 +2,16 @@
# Slackware build script for <dssi>
# Written by Michales Michaloudes korgie@gmail.com
+# Updated by Heinz Wiesinger pprkut@liwjatan.at - Added profile.d scripts
PRGNAM=dssi
VERSION=${VERSION:-1.0.0}
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo}
+TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -57,6 +58,17 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
+mkdir -p $PKG/etc/profile.d/
+cat << EOF > $PKG/etc/profile.d/dssi.csh
+#!/bin/csh
+setenv DSSI_PATH /usr/lib${LIBDIRSUFFIX}/dssi
+EOF
+cat << EOF > $PKG/etc/profile.d/dssi.sh
+#!/bin/sh
+export DSSI_PATH=/usr/lib${LIBDIRSUFFIX}/dssi
+EOF
+chmod 0755 $PKG/etc/profile.d/*
+
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null || true