# Template file for 'SweetHome3D' pkgname=SweetHome3D version=7.5 revision=1 archs="i686 x86_64" hostmakedepends="unzip which" makedepends="openjdk8 apache-ant" depends="virtual?java-runtime shared-mime-info desktop-file-utils libXext libXrender" short_desc="Free architectural design application" maintainer="1is7ac3 " license="GPL-2.0-or-later" homepage="https://www.sweethome3d.com" distfiles="${SOURCEFORGE_SITE}/sweethome3d/SweetHome3D-${version}-src.zip" checksum=735ce7c7b7291873432397b97ac341ef60499c1a47a108d64212c1ab91712c6d 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.6 vinstall j3dcore.jar 644 usr/lib/SweetHome3D/java3d-1.6 vinstall j3dutils.jar 644 usr/lib/SweetHome3D/java3d-1.6 vinstall vecmath.jar 644 usr/lib/SweetHome3D/java3d-1.6 if [ "$XBPS_MACHINE" = "i686" ]; then vinstall linux/i386/libj3dcore-ogl.so 755 usr/lib/SweetHome3D/java3d-1.6 elif [ "$XBPS_MACHINE" = "x86_64" ]; then vinstall linux/x64/libj3dcore-ogl.so 755 usr/lib/SweetHome3D/java3d-1.6 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 }