void-packages/srcpkgs/eclipse/template

39 lines
1.3 KiB
Bash

# Template file for 'eclipse'
pkgname=eclipse
version=4.9
revision=1
#code name of version
_release=2018-09
wrksrc="eclipse"
only_for_archs="i686 x86_64"
depends="virtual?java-environment unzip gtk+3 webkit2gtk libXtst hicolor-icon-theme desktop-file-utils"
short_desc="IDE for Java and other languages"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="EPL-1.0"
homepage="https://eclipse.org"
nopie=yes
_patch=R
_edition=java
_mirror="http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse"
if [ "$XBPS_MACHINE" = "x86_64" ]; then
distfiles="${_mirror}/technology/epp/downloads/release/${_release}/${_patch}/eclipse-${_edition}-${_release}-linux-gtk-x86_64.tar.gz"
checksum=7f5264ab51477deed9f28a4d3f92209846fa9caa3b311f60d540543c7e172748
else
distfiles="${_mirror}/technology/epp/downloads/release/${_release}/${_patch}/eclipse-${_edition}-${_release}-linux-gtk.tar.gz"
checksum=c33337a1740a84aabec3bd256f4256c8693ab0d1f755c120614bd28ae354f326
fi
do_install() {
vmkdir usr/lib/eclipse
cp -a ${wrksrc}/* ${DESTDIR}/usr/lib/eclipse
vbin ${FILESDIR}/eclipse.sh eclipse
vinstall ${FILESDIR}/eclipse.desktop 644 usr/share/applications
for _i in 16 32 48 256; do
install -Dm644 plugins/org.eclipse.platform_*/eclipse${_i}.png \
${DESTDIR}/usr/share/icons/hicolor/${_i}x${_i}/apps/eclipse.png
done
}