summaryrefslogtreecommitdiff
path: root/graphics/SweetHome3D/SweetHome3D.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/SweetHome3D/SweetHome3D.SlackBuild')
-rw-r--r--graphics/SweetHome3D/SweetHome3D.SlackBuild27
1 files changed, 10 insertions, 17 deletions
diff --git a/graphics/SweetHome3D/SweetHome3D.SlackBuild b/graphics/SweetHome3D/SweetHome3D.SlackBuild
index 9ad1aa9f4d..28bc911fdd 100644
--- a/graphics/SweetHome3D/SweetHome3D.SlackBuild
+++ b/graphics/SweetHome3D/SweetHome3D.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=SweetHome3D
-VERSION=${VERSION:-3.2}
+VERSION=${VERSION:-3.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,34 +69,27 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Copy executable file
mkdir -p $PKG/usr/bin
cp -a SweetHome3D $PKG/usr/bin
-# Fix path for java and libs of SweetHome3D
-sed -i "s/\"\$PROGRAM_DIR\"\/jre1.6.0_24\/bin\/java/\/usr\/lib${LIBDIRSUFFIX}\/java\/bin\/java/g" $PKG/usr/bin/$PRGNAM
-sed -i "s/\"\$PROGRAM_DIR\"\/jre1.6.0_24\/lib/\/usr\/lib${LIBDIRSUFFIX}\/java\/lib/g" $PKG/usr/bin/$PRGNAM
-sed -i "s/\"\$PROGRAM_DIR\"\/lib/\/usr\/lib${LIBDIRSUFFIX}\/$PRGNAM/g" $PKG/usr/bin/$PRGNAM
+sed -i $PKG/usr/bin/SweetHome3D \
+ -e "s,\"\$PROGRAM_DIR\"/jre1.6.0_37/bin/java,/usr/lib${LIBDIRSUFFIX}/java/bin/java,g" \
+ -e "s,\"\$PROGRAM_DIR\"/jre1.6.0_37/lib,/usr/lib${LIBDIRSUFFIX}/java/jre/lib,g" \
+ -e "s,\"\$PROGRAM_DIR\"/lib,/usr/share/$PRGNAM,g"
-# Copy libraries of program
-mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM
-cp -a lib/* $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM
+mkdir -p $PKG/usr/share/$PRGNAM
+cp -a lib/* $PKG/usr/share/$PRGNAM
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-# Install icons
-mkdir -p $PKG/usr/share/pixmaps
-cat $CWD/SweetHome3D.png > $PKG/usr/share/pixmaps/SweetHome3D.png
-mkdir -p $PKG/usr/share/applications
+mkdir -p $PKG/usr/share/{applications,pixmaps}
cat $CWD/SweetHome3D.desktop > $PKG/usr/share/applications/SweetHome3D.desktop
+cat $CWD/SweetHome3D.png > $PKG/usr/share/pixmaps/SweetHome3D.png
-# Copy documentation
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- COPYING.TXT LICENSE.TXT \
- THIRDPARTY-LICENSE-*.TXT \
- THIRDPARTY-LICENSE-JMF.HTML \
+ COPYING.TXT LICENSE.TXT THIRDPARTY-LICENSE-*.TXT THIRDPARTY-LICENSE-JMF.HTML \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild