[arch-commits] Commit in sweethome3d/repos (12 files)
Fabio Castelli
muflone at archlinux.org
Sun Apr 9 21:46:47 UTC 2017
Date: Sunday, April 9, 2017 @ 21:46:46
Author: muflone
Revision: 221671
archrelease: copy trunk to community-testing-i686, community-testing-x86_64
Added:
sweethome3d/repos/community-testing-i686/
sweethome3d/repos/community-testing-i686/PKGBUILD
(from rev 221670, sweethome3d/trunk/PKGBUILD)
sweethome3d/repos/community-testing-i686/sweethome3d.desktop
(from rev 221670, sweethome3d/trunk/sweethome3d.desktop)
sweethome3d/repos/community-testing-i686/sweethome3d.install
(from rev 221670, sweethome3d/trunk/sweethome3d.install)
sweethome3d/repos/community-testing-i686/sweethome3d.sh
(from rev 221670, sweethome3d/trunk/sweethome3d.sh)
sweethome3d/repos/community-testing-i686/sweethome3d.xml
(from rev 221670, sweethome3d/trunk/sweethome3d.xml)
sweethome3d/repos/community-testing-x86_64/
sweethome3d/repos/community-testing-x86_64/PKGBUILD
(from rev 221670, sweethome3d/trunk/PKGBUILD)
sweethome3d/repos/community-testing-x86_64/sweethome3d.desktop
(from rev 221670, sweethome3d/trunk/sweethome3d.desktop)
sweethome3d/repos/community-testing-x86_64/sweethome3d.install
(from rev 221670, sweethome3d/trunk/sweethome3d.install)
sweethome3d/repos/community-testing-x86_64/sweethome3d.sh
(from rev 221670, sweethome3d/trunk/sweethome3d.sh)
sweethome3d/repos/community-testing-x86_64/sweethome3d.xml
(from rev 221670, sweethome3d/trunk/sweethome3d.xml)
----------------------------------------------+
community-testing-i686/PKGBUILD | 56 +++++++++++++++++++++++++
community-testing-i686/sweethome3d.desktop | 11 ++++
community-testing-i686/sweethome3d.install | 10 ++++
community-testing-i686/sweethome3d.sh | 44 +++++++++++++++++++
community-testing-x86_64/PKGBUILD | 56 +++++++++++++++++++++++++
community-testing-x86_64/sweethome3d.desktop | 11 ++++
community-testing-x86_64/sweethome3d.install | 10 ++++
community-testing-x86_64/sweethome3d.sh | 44 +++++++++++++++++++
8 files changed, 242 insertions(+)
Copied: sweethome3d/repos/community-testing-i686/PKGBUILD (from rev 221670, sweethome3d/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2017-04-09 21:46:46 UTC (rev 221671)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+# Contributor: jsteel <mail at jsteel dot org>
+# Contributor: Daniel YC Lin <dlin.tw at gmail>
+# Contributor: Tdy <tdy at gmx.com>
+# Contributor: Biginoz <biginoz at free.fr>
+# Contributor: Archan Paul <paul.archan at gmail.com>
+
+pkgname=sweethome3d
+pkgver=5.4
+pkgrel=2
+pkgdesc="An interior design application to draw the plan of your house in a 3D environment"
+arch=('i686' 'x86_64')
+url="http://www.sweethome3d.com/"
+license=('GPL' 'custom')
+depends=('java-runtime>=8' 'shared-mime-info' 'desktop-file-utils' 'libxext' 'libgl' 'libxrender')
+source=("${pkgname}.sh"
+ "${pkgname}.desktop"
+ "${pkgname}.xml")
+source_i686=("SweetHome3D-5.4-linux-x86.tgz"::"http://downloads.sourceforge.net/${pkgname}/SweetHome3D-${pkgver}-linux-x86.tgz")
+source_x86_64=("SweetHome3D-5.4-linux-x64.tgz"::"http://downloads.sourceforge.net/${pkgname}/SweetHome3D-${pkgver}-linux-x64.tgz")
+sha256sums=('c1a76d4131ddf04375bab3e98d646543b4967af623a6aee0e19bac7d40d7ecef'
+ '5eea3337d956d773b05ddef69fe9d34b940ff550370dc92bf307f1b9a3957f9e'
+ 'ec0ad1a0671f708af68ced46bec1f4ab377e24ca1a0a9984867ee5fe484f57c5')
+sha256sums_i686=('f5778277c11be1b8f069be1775964a9eae1f20e3d20eb030cffe16f8f5252fdf')
+sha256sums_x86_64=('4f2f69495aac1cb2fd9a7c7235b596b1916fee4f77f348e8381cf136c56e5ae4')
+install="${pkgname}.install"
+
+package() {
+ # Desktop and launchers
+ cd "${srcdir}"
+ install -m 755 -D "${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
+ install -m 755 -D "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+ install -m 644 -D "${pkgname}.xml" "${pkgdir}/usr/share/mime/packages/${pkgname}.xml"
+ # Install licenses
+ cd "SweetHome3D-${pkgver}"
+ install -m 755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -m 755 -t "${pkgdir}/usr/share/licenses/${pkgname}" THIRDPARTY-LICENSE-*
+ # Install icon
+ install -m 644 -D "SweetHome3DIcon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+ # Install javaws.jar from jre8
+ install -m 755 -d "${pkgdir}/usr/share/java/${pkgname}"
+ install -m 644 -t "${pkgdir}/usr/share/java/${pkgname}" jre8/lib/javaws.jar
+ # Install main program and libraries
+ cd "lib"
+ install -m 644 -t "${pkgdir}/usr/share/java/${pkgname}" *.jar
+ # Java3D 1.5 libraries
+ install -m 755 -d "${pkgdir}/usr/lib/${pkgname}/java3d-1.5"
+ mv -t "${pkgdir}/usr/lib/${pkgname}/java3d-1.5" \
+ "${pkgdir}"/usr/share/java/${pkgname}/{j3dcore.jar,j3dutils.jar,vecmath.jar}
+ install -m 755 -t "${pkgdir}/usr/lib/${pkgname}/java3d-1.5" libj3dcore-ogl.so
+ # Java3D 1.6 libraries
+ install -m 755 -d "${pkgdir}/usr/lib/${pkgname}/java3d-1.6"
+ install -m 644 -t "${pkgdir}/usr/lib/${pkgname}/java3d-1.6" java3d-1.6/*.jar
+ install -m 755 -t "${pkgdir}/usr/lib/${pkgname}/java3d-1.6" java3d-1.6/*.so
+}
Copied: sweethome3d/repos/community-testing-i686/sweethome3d.desktop (from rev 221670, sweethome3d/trunk/sweethome3d.desktop)
===================================================================
--- community-testing-i686/sweethome3d.desktop (rev 0)
+++ community-testing-i686/sweethome3d.desktop 2017-04-09 21:46:46 UTC (rev 221671)
@@ -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
Copied: sweethome3d/repos/community-testing-i686/sweethome3d.install (from rev 221670, sweethome3d/trunk/sweethome3d.install)
===================================================================
--- community-testing-i686/sweethome3d.install (rev 0)
+++ community-testing-i686/sweethome3d.install 2017-04-09 21:46:46 UTC (rev 221671)
@@ -0,0 +1,10 @@
+post_install() {
+ echo "If the application claims there's no graphic support for 3D rendering"
+ echo "you can switch to Java3D 1.5 by using:"
+ echo "SWEETHOME3D_JAVA3D=1.5 sweethome3d"
+ echo "or set the SWEETHOME3D_JAVA3D environment variable in your profile"
+}
+
+post_upgrade() {
+ post_install $1
+}
Copied: sweethome3d/repos/community-testing-i686/sweethome3d.sh (from rev 221670, sweethome3d/trunk/sweethome3d.sh)
===================================================================
--- community-testing-i686/sweethome3d.sh (rev 0)
+++ community-testing-i686/sweethome3d.sh 2017-04-09 21:46:46 UTC (rev 221671)
@@ -0,0 +1,44 @@
+#!/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
+
+if [ -z "${JAVA_EXEC}" ]
+then
+ echo "No 'java' executable can be found, please set JAVA_HOME variable or"
+ echo "use the 'archlinux-java' script to set the Java version."
+ exit 1
+fi
+
+# Build classpath
+APP_CLASSPATH="SweetHome3D.jar:Furniture.jar:Textures.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"
+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-java3d.jar"
+fi
+APP_CLASSPATH="${APP_CLASSPATH}:javaws.jar"
+
+cd "/usr/share/java/sweethome3d"
+
+exec "${JAVA_EXEC}" \
+ -classpath "${APP_CLASSPATH}" \
+ ${JAVA_OPTS} \
+ -Dcom.eteks.sweethome3d.applicationId=SweetHome3D#Installer \
+ com.eteks.sweethome3d.SweetHome3D \
+ -open "$1"
+
Copied: sweethome3d/repos/community-testing-i686/sweethome3d.xml (from rev 221670, sweethome3d/trunk/sweethome3d.xml)
===================================================================
(Binary files differ)
Copied: sweethome3d/repos/community-testing-x86_64/PKGBUILD (from rev 221670, sweethome3d/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2017-04-09 21:46:46 UTC (rev 221671)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+# Contributor: jsteel <mail at jsteel dot org>
+# Contributor: Daniel YC Lin <dlin.tw at gmail>
+# Contributor: Tdy <tdy at gmx.com>
+# Contributor: Biginoz <biginoz at free.fr>
+# Contributor: Archan Paul <paul.archan at gmail.com>
+
+pkgname=sweethome3d
+pkgver=5.4
+pkgrel=2
+pkgdesc="An interior design application to draw the plan of your house in a 3D environment"
+arch=('i686' 'x86_64')
+url="http://www.sweethome3d.com/"
+license=('GPL' 'custom')
+depends=('java-runtime>=8' 'shared-mime-info' 'desktop-file-utils' 'libxext' 'libgl' 'libxrender')
+source=("${pkgname}.sh"
+ "${pkgname}.desktop"
+ "${pkgname}.xml")
+source_i686=("SweetHome3D-5.4-linux-x86.tgz"::"http://downloads.sourceforge.net/${pkgname}/SweetHome3D-${pkgver}-linux-x86.tgz")
+source_x86_64=("SweetHome3D-5.4-linux-x64.tgz"::"http://downloads.sourceforge.net/${pkgname}/SweetHome3D-${pkgver}-linux-x64.tgz")
+sha256sums=('c1a76d4131ddf04375bab3e98d646543b4967af623a6aee0e19bac7d40d7ecef'
+ '5eea3337d956d773b05ddef69fe9d34b940ff550370dc92bf307f1b9a3957f9e'
+ 'ec0ad1a0671f708af68ced46bec1f4ab377e24ca1a0a9984867ee5fe484f57c5')
+sha256sums_i686=('f5778277c11be1b8f069be1775964a9eae1f20e3d20eb030cffe16f8f5252fdf')
+sha256sums_x86_64=('4f2f69495aac1cb2fd9a7c7235b596b1916fee4f77f348e8381cf136c56e5ae4')
+install="${pkgname}.install"
+
+package() {
+ # Desktop and launchers
+ cd "${srcdir}"
+ install -m 755 -D "${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
+ install -m 755 -D "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+ install -m 644 -D "${pkgname}.xml" "${pkgdir}/usr/share/mime/packages/${pkgname}.xml"
+ # Install licenses
+ cd "SweetHome3D-${pkgver}"
+ install -m 755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -m 755 -t "${pkgdir}/usr/share/licenses/${pkgname}" THIRDPARTY-LICENSE-*
+ # Install icon
+ install -m 644 -D "SweetHome3DIcon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+ # Install javaws.jar from jre8
+ install -m 755 -d "${pkgdir}/usr/share/java/${pkgname}"
+ install -m 644 -t "${pkgdir}/usr/share/java/${pkgname}" jre8/lib/javaws.jar
+ # Install main program and libraries
+ cd "lib"
+ install -m 644 -t "${pkgdir}/usr/share/java/${pkgname}" *.jar
+ # Java3D 1.5 libraries
+ install -m 755 -d "${pkgdir}/usr/lib/${pkgname}/java3d-1.5"
+ mv -t "${pkgdir}/usr/lib/${pkgname}/java3d-1.5" \
+ "${pkgdir}"/usr/share/java/${pkgname}/{j3dcore.jar,j3dutils.jar,vecmath.jar}
+ install -m 755 -t "${pkgdir}/usr/lib/${pkgname}/java3d-1.5" libj3dcore-ogl.so
+ # Java3D 1.6 libraries
+ install -m 755 -d "${pkgdir}/usr/lib/${pkgname}/java3d-1.6"
+ install -m 644 -t "${pkgdir}/usr/lib/${pkgname}/java3d-1.6" java3d-1.6/*.jar
+ install -m 755 -t "${pkgdir}/usr/lib/${pkgname}/java3d-1.6" java3d-1.6/*.so
+}
Copied: sweethome3d/repos/community-testing-x86_64/sweethome3d.desktop (from rev 221670, sweethome3d/trunk/sweethome3d.desktop)
===================================================================
--- community-testing-x86_64/sweethome3d.desktop (rev 0)
+++ community-testing-x86_64/sweethome3d.desktop 2017-04-09 21:46:46 UTC (rev 221671)
@@ -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
Copied: sweethome3d/repos/community-testing-x86_64/sweethome3d.install (from rev 221670, sweethome3d/trunk/sweethome3d.install)
===================================================================
--- community-testing-x86_64/sweethome3d.install (rev 0)
+++ community-testing-x86_64/sweethome3d.install 2017-04-09 21:46:46 UTC (rev 221671)
@@ -0,0 +1,10 @@
+post_install() {
+ echo "If the application claims there's no graphic support for 3D rendering"
+ echo "you can switch to Java3D 1.5 by using:"
+ echo "SWEETHOME3D_JAVA3D=1.5 sweethome3d"
+ echo "or set the SWEETHOME3D_JAVA3D environment variable in your profile"
+}
+
+post_upgrade() {
+ post_install $1
+}
Copied: sweethome3d/repos/community-testing-x86_64/sweethome3d.sh (from rev 221670, sweethome3d/trunk/sweethome3d.sh)
===================================================================
--- community-testing-x86_64/sweethome3d.sh (rev 0)
+++ community-testing-x86_64/sweethome3d.sh 2017-04-09 21:46:46 UTC (rev 221671)
@@ -0,0 +1,44 @@
+#!/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
+
+if [ -z "${JAVA_EXEC}" ]
+then
+ echo "No 'java' executable can be found, please set JAVA_HOME variable or"
+ echo "use the 'archlinux-java' script to set the Java version."
+ exit 1
+fi
+
+# Build classpath
+APP_CLASSPATH="SweetHome3D.jar:Furniture.jar:Textures.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"
+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-java3d.jar"
+fi
+APP_CLASSPATH="${APP_CLASSPATH}:javaws.jar"
+
+cd "/usr/share/java/sweethome3d"
+
+exec "${JAVA_EXEC}" \
+ -classpath "${APP_CLASSPATH}" \
+ ${JAVA_OPTS} \
+ -Dcom.eteks.sweethome3d.applicationId=SweetHome3D#Installer \
+ com.eteks.sweethome3d.SweetHome3D \
+ -open "$1"
+
Copied: sweethome3d/repos/community-testing-x86_64/sweethome3d.xml (from rev 221670, sweethome3d/trunk/sweethome3d.xml)
===================================================================
(Binary files differ)
More information about the arch-commits
mailing list