void-packages/srcpkgs/eclipse/template
Aloz1 01d1dc05a9 eclipse: update to 4.7.0 (oxygen)
Closes: #7551 [via git-merge-pr]
2017-09-02 18:10:37 -07:00

35 lines
1.3 KiB
Bash

# Template file for 'eclipse'
pkgname=eclipse
version=4.7.0
revision=1
wrksrc="eclipse"
depends="virtual?java-environment unzip gtk+ webkitgtk2 libXtst hicolor-icon-theme desktop-file-utils"
short_desc="An IDE for Java and other languages"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="EPL"
homepage="http://eclipse.org"
only_for_archs="i686 x86_64"
nopie=yes
_release=oxygen-R
_edition=java
if [ "$XBPS_MACHINE" = "x86_64" ]; then
distfiles="http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/technology/epp/downloads/release/${_release/-//}/eclipse-${_edition}-${_release}-linux-gtk-x86_64.tar.gz"
checksum=f9bfa89f66886f34132623c5fc9f9202fe2bbf6c47d0e8c01cffe1302f3f4ca0
else
distfiles="http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/technology/epp/downloads/release/${_release/-//}/eclipse-${_edition}-${_release}-linux-gtk.tar.gz"
checksum=89366eaf3f86dee46494848c86818625cd79a7a8aea53c0e292e13f715120023
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
}