void-packages/srcpkgs/SweetHome3D/template
2019-10-03 19:23:39 +02:00

49 lines
1.9 KiB
Bash

# Template file for 'SweetHome3D'
pkgname=SweetHome3D
version=6.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=285cb97aee9254de66a195469e494fb28bb77dc1f14b0a92802e7896bd7870ad
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
}