From d15721910e5cf3eb605f7bfc023c0cf8a5871be2 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 4 Mar 2014 18:09:26 +0100 Subject: [PATCH] New package: eclipse-4.3.2. --- srcpkgs/eclipse/files/eclipse.desktop | 9 +++++++ srcpkgs/eclipse/files/eclipse.sh | 4 +++ srcpkgs/eclipse/template | 36 +++++++++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 srcpkgs/eclipse/files/eclipse.desktop create mode 100644 srcpkgs/eclipse/files/eclipse.sh create mode 100644 srcpkgs/eclipse/template diff --git a/srcpkgs/eclipse/files/eclipse.desktop b/srcpkgs/eclipse/files/eclipse.desktop new file mode 100644 index 0000000000..597b1aca87 --- /dev/null +++ b/srcpkgs/eclipse/files/eclipse.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Eclipse +Comment=A Java Development Environment +Icon=eclipse +Exec=eclipse +Terminal=false +Type=Application +Categories=Development;IDE;Java; +StartupNotify=true diff --git a/srcpkgs/eclipse/files/eclipse.sh b/srcpkgs/eclipse/files/eclipse.sh new file mode 100644 index 0000000000..92e4a5423d --- /dev/null +++ b/srcpkgs/eclipse/files/eclipse.sh @@ -0,0 +1,4 @@ +#!/bin/sh +export ECLIPSE_HOME=/usr/lib/eclipse +export GDK_NATIVE_WINDOWS=true +exec ${ECLIPSE_HOME}/eclipse "$@" diff --git a/srcpkgs/eclipse/template b/srcpkgs/eclipse/template new file mode 100644 index 0000000000..64a5bda1e9 --- /dev/null +++ b/srcpkgs/eclipse/template @@ -0,0 +1,36 @@ +# Template file for 'eclipse' +pkgname=eclipse +version=4.3.2 +revision=1 +wrksrc="eclipse" +makedepends="jre?java-runtime unzip gtk+ webkitgtk libXtst hicolor-icon-theme desktop-file-utils" +depends="${makedepends}" +short_desc="An IDE for Java and other languages" +maintainer="Juan RP " +license="EPL" +homepage="http://eclipse.org" + +only_for_archs="i686 x86_64" + +_release=kepler-SR2 + +if [ "$XBPS_MACHINE" = "x86_64" ]; then + distfiles="http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/technology/epp/downloads/release/${_release/-//}/eclipse-standard-${_release}-linux-gtk-x86_64.tar.gz" + checksum=7f014c1c20f8b3347c04a72cc902036e9120b7d6dccf38e61701d5d4303605a5 +else + distfiles="http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/technology/epp/downloads/release/${_release/-//}/eclipse-standard-${_release}-linux-gtk.tar.gz" + checksum=d32a08061678cf171f28c0c19e3a3da49d311a8f7428666b6ab3d6a499dd1fed +fi + +do_install() { + vmkdir usr/lib/eclipse + cp -a ${wrksrc}/* ${DESTDIR}/usr/lib/eclipse + + vinstall ${FILESDIR}/eclipse.sh 755 usr/bin 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 +}