void-packages/srcpkgs/SweetHome3D/template

49 lines
1.9 KiB
Bash

# Template file for 'SweetHome3D'
pkgname=SweetHome3D
version=7.2
revision=1
archs="i686 x86_64"
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="https://www.sweethome3d.com"
distfiles="${SOURCEFORGE_SITE}/sweethome3d/SweetHome3D-${version}-src.zip"
checksum=228dc77eeb2c7d2cba08b1c4d0908093482304095afeefa94b519a9fc071a336
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
}