[Slackbuilds-users] SweetHome3D update and fix

King Beowulf kingbeowulf at gmail.com
Sun Nov 25 07:59:55 UTC 2012


Giovanne

I had an issuewith your SweetHome3D not running due to not being able to 
find the java7 version of javaws.jar (jdk-7 via SBo or in /extra).  
While I was at it I tried with the newer SweetHome3D-3.7. Since you are 
not packaging for the SweetHome3D bundled java6, you will need to watch 
out for where /usr/lib64/java/jre/lib/javaws.jar is located.

Here is a patch:

--- SweetHome3D.SlackBuild    2012-11-24 23:40:10.032146649 -0800
+++ SweetHome3d.SlackBuild.new    2012-11-24 23:10:38.000000000 -0800
@@ -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}

@@ -74,8 +74,8 @@
  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\"\/jre1.6.0_37\/bin\/java/\/usr\/lib${LIBDIRSUFFIX}\/java\/bin\/java/g" 
$PKG/usr/bin/$PRGNAM
+sed -i 
"s/\"\$PROGRAM_DIR\"\/jre1.6.0_37\/lib/\/usr\/lib${LIBDIRSUFFIX}\/java\/jre\/lib/g" 
$PKG/usr/bin/$PRGNAM
  sed -i "s/\"\$PROGRAM_DIR\"\/lib/\/usr\/lib${LIBDIRSUFFIX}\/$PRGNAM/g" 
$PKG/usr/bin/$PRGNAM

  # Copy libraries of program





More information about the SlackBuilds-users mailing list