aboutsummaryrefslogtreecommitdiff
path: root/games/VASSAL/VASSAL.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/VASSAL/VASSAL.SlackBuild')
-rw-r--r--games/VASSAL/VASSAL.SlackBuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/games/VASSAL/VASSAL.SlackBuild b/games/VASSAL/VASSAL.SlackBuild
index 8fabf966a79fd..ade48ceb0f569 100644
--- a/games/VASSAL/VASSAL.SlackBuild
+++ b/games/VASSAL/VASSAL.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=VASSAL
VERSION=${VERSION:-3.2.17}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -72,12 +72,16 @@ find -L . \
mkdir -p $PKG/usr/bin $PKG/usr/share/games/$PRGNAM
cp -rf lib $PKG/usr/share/games/$PRGNAM
-install -D -m0755 $PRGNAM.sh $PKG/usr/share/games/$PRGNAM/$PRGNAM.sh
-install -D -m0755 $CWD/VASSAL $PKG/usr/bin
+sed -i "s|^\(INSTALL_DIR=\).*|\1/usr/share/games/$PRGNAM|" $PRGNAM.sh
+
+install -D -m0755 $PRGNAM.sh $PKG/usr/bin/$PRGNAM
mkdir -p $PKG/usr/share/applications
install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
+mkdir -p $PKG/usr/share/mime/packages
+install -D -m644 $CWD/$PRGNAM-mime.xml $PKG/usr/share/mime/packages/$PRGNAM-mime.xml
+
mkdir -p $PKG/usr/share/pixmaps
install -m644 -D $CWD/$PRGNAM.svg $PKG/usr/share/pixmaps/$PRGNAM.svg
@@ -86,6 +90,7 @@ cp -a \
CHANGES LICENSE README doc \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rm $PKG/usr/doc/$PRGNAM-$VERSION/doc/userguide/userguide.doc
ln -s /usr/doc/$PRGNAM-$VERSION/doc $PKG/usr/share/games/$PRGNAM/doc
mkdir -p $PKG/install