<?xml version="1.0"?>
<package name="eclipse-platform">
	<description>Eclipse Platform with user documentation</description>
	<releases>
		<release version="3.4" revision="2" branch="stable">
			<settings>
				<variable name="SDKVERSION">3.4.0.v200806172000</variable>
			</settings>
			<deps>
				<dep name="jre"/>
				<dep name="gtk+-2.0" />
			</deps>
			<build>
				<script>
					<!-- use srcdir eclipse as it gets installed with the same name -->
					<archive name="eclipse-platform-SDK-$VERSION-linux-gtk-$ARCH" srcdir="eclipse">
						<cmd>rm -rvf {features,plugins}/*.source*</cmd>

						<cmd>cp -av $PWD /usr/lib/</cmd>
						
						
						
						<text dest="/usr/bin/eclipse" mode="0755">#!/bin/bash

# Wrapper for eclipse
exec /usr/lib/eclipse/eclipse "$@"</text>
						<text dest="/usr/share/applications/eclipse.desktop">[Desktop Entry]
Name=Eclipse
Comment=Integrated Development Platform
Exec=eclipse
Icon=/usr/lib/eclipse/plugins/org.eclipse.sdk_$SDKVERSION/eclipse48.png
Terminal=false
Type=Application
Categories=Application;Development;</text>
					</archive>
					<!-- install the missing sdk plugin shipped with their release bundle -->
					<archive name="org.eclipse.sdk_$SDKVERSION">
						<cmd>cp -av plugins /usr/lib/eclipse</cmd>
					</archive>
				</script>
			</build>
		</release>		
		<release version="3.4" revision="1" tag="sdk" branch="stable">
			<deps>
				<dep name="eclipse-platform"/>
			</deps>
			<build>
				<script>
					<archive name="eclipse-platform-SDK-$VERSION-linux-gtk-$ARCH">
						<cmd>cp -av features/*.source* /usr/lib/eclipse/features/</cmd>
						<cmd>cp -av plugins/*.source* /usr/lib/eclipse/plugins/</cmd>
					</archive>
				</script>
			</build>
		</release>
	</releases>
</package>
