void-packages/srcpkgs/SweetHome3D/template

49 lines
1.9 KiB
Bash

# Template file for 'SweetHome3D'
pkgname=SweetHome3D
version=7.3
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 <isaac.qa13@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://www.sweethome3d.com"
distfiles="${SOURCEFORGE_SITE}/sweethome3d/SweetHome3D-${version}-src.zip"
checksum=8eaab3f269181077a26768cbd977fead72a04666325d201e1ea79949f6db70c3
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
}