New package: SweetHome3D-6.1.2
This commit is contained in:
parent
01cd6e85e7
commit
b7dda20c1d
4 changed files with 102 additions and 0 deletions
11
srcpkgs/SweetHome3D/files/SweetHome3D.desktop
Normal file
11
srcpkgs/SweetHome3D/files/SweetHome3D.desktop
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=Sweet Home 3D
|
||||
Comment=An interior design application
|
||||
TryExec=sweethome3d
|
||||
Exec=sweethome3d %f
|
||||
Icon=sweethome3d
|
||||
Categories=Office;Java;
|
||||
StartupWMClass=com-eteks-sweethome3d-SweetHome3D
|
||||
MimeType=application/x-sweethome3d
|
35
srcpkgs/SweetHome3D/files/sweethome3d
Normal file
35
srcpkgs/SweetHome3D/files/sweethome3d
Normal file
|
@ -0,0 +1,35 @@
|
|||
#!/bin/sh
|
||||
|
||||
APP_CLASSPATH=""
|
||||
JAVA_EXEC=""
|
||||
JAVA_OPTS="${JAVA_OPTS} -Xmx1024m"
|
||||
|
||||
if [ -n "${JAVA_HOME}" ]
|
||||
then
|
||||
if [ -x "${JAVA_HOME}/bin/java" ]
|
||||
then
|
||||
JAVA_EXEC="${JAVA_HOME}/bin/java"
|
||||
fi
|
||||
else
|
||||
JAVA_EXEC="$(which java)"
|
||||
fi
|
||||
|
||||
# Build classpath
|
||||
APP_CLASSPATH="SweetHome3D.jar:Furniture.jar:Textures.jar:Examples.jar:Help.jar:iText-2.1.7.jar:freehep-vectorgraphics-svg-2.1.1b.jar:sunflow-0.07.3i.jar:jmf.jar:batik-svgpathparser-1.7.jar:jeksparser-calculator.jar:jnlp.jar"
|
||||
if [ "${SWEETHOME3D_JAVA3D}" = "1.5" ]
|
||||
then
|
||||
JAVA_OPTS="${JAVA_OPTS} -Djava.library.path=/usr/lib/SweetHome3D/java3d-1.5"
|
||||
APP_CLASSPATH="${APP_CLASSPATH}:/usr/lib/SweetHome3D/java3d-1.5/j3dcore.jar:/usr/lib/SweetHome3D/java3d-1.5/j3dutils.jar:/usr/lib/SweetHome3D/java3d-1.5/vecmath.jar"
|
||||
else
|
||||
JAVA_OPTS="${JAVA_OPTS} -Djava.library.path=/usr/lib/SweetHome3D/java3d-1.6 -Djogamp.gluegen.UseTempJarCache=false"
|
||||
APP_CLASSPATH="${APP_CLASSPATH}:/usr/lib/SweetHome3D/java3d-1.6/j3dcore.jar:/usr/lib/SweetHome3D/java3d-1.6/j3dutils.jar:/usr/lib/SweetHome3D/java3d-1.6/vecmath.jar:/usr/lib/SweetHome3D/java3d-1.6/gluegen-rt.jar:/usr/lib/SweetHome3D/java3d-1.6/jogl-all.jar"
|
||||
fi
|
||||
|
||||
cd "/usr/share/SweetHome3D"
|
||||
|
||||
exec "${JAVA_EXEC}" \
|
||||
-classpath "${APP_CLASSPATH}" \
|
||||
${JAVA_OPTS} \
|
||||
-Dcom.eteks.sweethome3d.applicationId=SweetHome3D#Installer \
|
||||
com.eteks.sweethome3d.SweetHome3D \
|
||||
-open "$1"
|
7
srcpkgs/SweetHome3D/files/sweethome3d.xml
Normal file
7
srcpkgs/SweetHome3D/files/sweethome3d.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
||||
<mime-type type="application/x-sweethome3d">
|
||||
<comment>Sweet Home 3D project</comment>
|
||||
<glob pattern="*.sh3d"/>
|
||||
</mime-type>
|
||||
</mime-info>
|
49
srcpkgs/SweetHome3D/template
Normal file
49
srcpkgs/SweetHome3D/template
Normal file
|
@ -0,0 +1,49 @@
|
|||
# Template file for 'SweetHome3D'
|
||||
pkgname=SweetHome3D
|
||||
version=6.1.2
|
||||
revision=1
|
||||
archs="i686 x86_64"
|
||||
wrksrc="SweetHome3D-${version}-src"
|
||||
hostmakedepends="unzip"
|
||||
makedepends="openjdk apache-ant"
|
||||
depends="virtual?java-runtime shared-mime-info desktop-file-utils libXext libXrender"
|
||||
short_desc="Free architectural design application"
|
||||
maintainer="1is7ac3 <isaac.qa13@gmail.com>"
|
||||
license="GPL-2.0-or-later"
|
||||
homepage="www.sweethome3d.com"
|
||||
distfiles="${SOURCEFORGE_SITE}/sweethome3d/SweetHome3D-${version}-src.zip"
|
||||
checksum=43645e34c94bf5b514974428c4a0eefae403fcaf52258cbb9c6fe07d4da8f7db
|
||||
|
||||
do_build() {
|
||||
ant application textures furniture examples help java3dLibraries
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vinstall "${FILESDIR}/SweetHome3D.desktop" 755 usr/share/applications
|
||||
vbin ${FILESDIR}/sweethome3d
|
||||
vinstall "${FILESDIR}/sweethome3d.xml" 644 usr/share/mime/packages
|
||||
vinstall deploy/SweetHome3DIcon48x48.png 644 usr/share/pixmaps SweetHome3D.png
|
||||
vmkdir usr/share/licenses/SweetHome3D
|
||||
vcopy "THIRDPARTY-LICENSE-*" usr/share/licenses/SweetHome3D
|
||||
vmkdir usr/share/SweetHome3D
|
||||
vcopy "build/*.jar" usr/share/SweetHome3D
|
||||
vinstall libtest/jnlp.jar 644 usr/share/SweetHome3D
|
||||
cd lib
|
||||
vmkdir usr/lib/SweetHome3D/java3d-1.5
|
||||
vinstall j3dcore.jar 644 usr/lib/SweetHome3D/java3d-1.5
|
||||
vinstall j3dutils.jar 644 usr/lib/SweetHome3D/java3d-1.5
|
||||
vinstall vecmath.jar 644 usr/lib/SweetHome3D/java3d-1.5
|
||||
if [ "$XBPS_MACHINE" = "i686" ]; then
|
||||
vinstall linux/i386/libj3dcore-ogl.so 755 usr/lib/SweetHome3D/java3d-1.5
|
||||
elif [ "$XBPS_MACHINE" = "x86_64" ]; then
|
||||
vinstall linux/x64/libj3dcore-ogl.so 755 usr/lib/SweetHome3D/java3d-1.5
|
||||
fi
|
||||
vcopy *.jar usr/share/SweetHome3D
|
||||
vmkdir usr/lib/SweetHome3D/java3d-1.6
|
||||
vcopy java3d-1.6/*.jar usr/lib/SweetHome3D/java3d-1.6
|
||||
if [ "$XBPS_MACHINE" = "i686" ]; then
|
||||
vcopy java3d-1.6/linux/i586/*.so usr/lib/SweetHome3D/java3d-1.6
|
||||
elif [ "$XBPS_MACHINE" = "x86_64" ]; then
|
||||
vcopy java3d-1.6/linux/amd64/*.so usr/lib/SweetHome3D/java3d-1.6
|
||||
fi
|
||||
}
|
Loading…
Reference in a new issue