void-packages/srcpkgs/SweetHome3D/template

50 lines
1.9 KiB
Bash

# Template file for 'SweetHome3D'
pkgname=SweetHome3D
version=6.5.2
revision=1
archs="i686 x86_64"
wrksrc="SweetHome3D-${version}-src"
hostmakedepends="unzip which"
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=e3323f078e49c72e575e2e771f1586a7c18475b42ea32982abb27756b7a81dc8
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
}