35 lines
1.3 KiB
Bash
35 lines
1.3 KiB
Bash
# Template file for 'eclipse'
|
|
pkgname=eclipse
|
|
version=4.5.2
|
|
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"
|
|
|
|
_release=mars-2
|
|
_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=ec8300fab617db38a817919f59b137b6422aac54336b46cbf5a873af62f898d6
|
|
else
|
|
distfiles="http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/technology/epp/downloads/release/${_release/-//}/eclipse-${_edition}-${_release}-linux-gtk.tar.gz"
|
|
checksum=679e50bb3c98d2d8d305a795c19dd3513833c9508477ec60dd955c448000d8b4
|
|
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
|
|
}
|