summaryrefslogtreecommitdiff
path: root/graphics/SweetHome3D/SweetHome3D.SlackBuild
diff options
context:
space:
mode:
authorEdward W. Koenig <kingbeowulf@gmail.com>2013-01-15 08:32:18 -0600
committerRobby Workman <rworkman@slackbuilds.org>2013-01-15 08:32:38 -0600
commit6ab9645b6d282e080931983c39b85a1aedf1cc8b (patch)
tree3a4f30ad32372b56794231f5066ee2afd6de1626 /graphics/SweetHome3D/SweetHome3D.SlackBuild
parentc96e25c918eabaa478586d45a0f9252836a48ed0 (diff)
downloadslackbuilds-6ab9645b6d282e080931983c39b85a1aedf1cc8b.tar.gz
graphics/SweetHome3D: Updated for version 3.7 (+new maintainer)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
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