gis/josm: Fixed SlackBuild.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2017-02-25 20:11:43 +00:00 committed by Willy Sudiarto Raharjo
parent a2cb2cc895
commit 4df861226e

View file

@ -42,24 +42,24 @@ fi
set -e
rm -rf $PKG
mkdir -p $TMP/$PRGNAM $PKG $OUTPUT
cp $CWD/$PRGNAM-tested.jar $TMP/$PRGNAM/
cd $TMP/$PRGNAM
mkdir -p $TMP $PKG $OUTPUT
if [ "$VERSION" = "tested" ]; then
VERSION=$(java -jar $PRGNAM-tested.jar --version | sed -e 's/.*(//' -e 's/ .*//')
SRCVER=tested
VERSION=$(java -jar $CWD/$PRGNAM-tested.jar --version | sed -e 's/.*(//' -e 's/ .*//')
else
SRCVER=snapshot-$VERSION
fi
cat > $TMP/$PRGNAM/$PRGNAM << EOF
mkdir -p $PKG/opt/$PRGNAM
cp $CWD/$PRGNAM-$SRCVER.jar $PKG/opt/$PRGNAM/$PRGNAM.jar
mkdir -p $PKG/usr/bin
cat > $PKG/usr/bin/$PRGNAM << EOF
#!/bin/bash
java -jar /opt/$PRGNAM/$PRGNAM.jar
EOF
chmod 755 $TMP/$PRGNAM/$PRGNAM
mkdir -p $PKG/opt/$PRGNAM
cp $TMP/$PRGNAM/$PRGNAM-tested.jar $PKG/opt/$PRGNAM/$PRGNAM.jar
mkdir -p $PKG/usr/bin
cp $TMP/$PRGNAM/$PRGNAM $PKG/usr/bin/
chmod 755 $PKG/usr/bin/$PRGNAM
# cp KDE desktop icon
mkdir -p $PKG/usr/share/applications