2014-03-04 17:09:26 +00:00
|
|
|
# Template file for 'eclipse'
|
|
|
|
pkgname=eclipse
|
2014-11-13 09:17:48 +00:00
|
|
|
version=4.4.1
|
2014-03-04 17:09:26 +00:00
|
|
|
revision=1
|
|
|
|
wrksrc="eclipse"
|
2014-11-13 09:17:48 +00:00
|
|
|
depends="virtual?java-environment unzip gtk+ webkitgtk libXtst hicolor-icon-theme desktop-file-utils"
|
2014-03-04 17:09:26 +00:00
|
|
|
short_desc="An IDE for Java and other languages"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="EPL"
|
|
|
|
homepage="http://eclipse.org"
|
2014-11-05 08:01:35 +00:00
|
|
|
update_site="http://www.eclipse.org/downloads"
|
|
|
|
update_pattern='\(\K[\d.]+(?=\) Release)'
|
2014-03-04 17:09:26 +00:00
|
|
|
only_for_archs="i686 x86_64"
|
|
|
|
|
2014-11-13 09:17:48 +00:00
|
|
|
_release=luna-SR1
|
2014-03-04 17:09:26 +00:00
|
|
|
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"
|
2014-11-13 09:17:48 +00:00
|
|
|
checksum=eebf7dd463d6de5c0f4ec8968c00abdfac8183791cc279e648fef582599481cc
|
2014-03-04 17:09:26 +00:00
|
|
|
else
|
|
|
|
distfiles="http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/technology/epp/downloads/release/${_release/-//}/eclipse-standard-${_release}-linux-gtk.tar.gz"
|
2014-11-13 09:17:48 +00:00
|
|
|
checksum=01685991108643d746841502c885c776227053dd613274cc4623a1e95a1eeddd
|
2014-03-04 17:09:26 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vmkdir usr/lib/eclipse
|
|
|
|
cp -a ${wrksrc}/* ${DESTDIR}/usr/lib/eclipse
|
|
|
|
|
2014-11-13 09:17:48 +00:00
|
|
|
vbin ${FILESDIR}/eclipse.sh eclipse
|
2014-03-04 17:09:26 +00:00
|
|
|
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
|
|
|
|
}
|