aboutsummaryrefslogtreecommitdiff
path: root/games/redeclipse/redeclipse.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/redeclipse/redeclipse.SlackBuild')
-rw-r--r--games/redeclipse/redeclipse.SlackBuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/games/redeclipse/redeclipse.SlackBuild b/games/redeclipse/redeclipse.SlackBuild
index e11e9c31176e3..9fc132f829fac 100644
--- a/games/redeclipse/redeclipse.SlackBuild
+++ b/games/redeclipse/redeclipse.SlackBuild
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=redeclipse
-VERSION=${VERSION:-1.5.8}
+VERSION=${VERSION:-1.6.0}
SRCNAM=base
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -67,10 +67,14 @@ cd $SRCNAM-$VERSION
# Unpack the submodules
for SUBMODULE in `cat $CWD/submodules-list`; do
- rm -r data/$SUBMODULE
+ if [ -d data/$SUBMODULE ]; then
+ rm -r data/$SUBMODULE
+ fi
tar xvf $CWD/${SUBMODULE}-${VERSION}.tar.gz
mv ${SUBMODULE}-${VERSION} data/${SUBMODULE}
- rm data/${SUBMODULE}/.gitmodules
+ if [ -e data/${SUBMODULE}/.gitmodules ]; then
+ rm data/${SUBMODULE}/.gitmodules
+ fi
done
chown -R root:root .
@@ -99,6 +103,7 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+# Copy slack-desc and doinst.sh into ./install
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh