mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
gis/josm: Fixed SlackBuild.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
a2cb2cc895
commit
4df861226e
1 changed files with 11 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue