void-packages/srcpkgs/eclipse/template

37 lines
1.3 KiB
Plaintext
Raw Normal View History

2014-03-04 18:09:26 +01:00
# Template file for 'eclipse'
pkgname=eclipse
2014-07-01 09:51:39 +02:00
version=4.4.0
2014-03-04 18:09:26 +01:00
revision=1
wrksrc="eclipse"
makedepends="oracle-jdk?java-runtime unzip gtk+ webkitgtk libXtst hicolor-icon-theme desktop-file-utils"
2014-03-04 18:09:26 +01:00
depends="${makedepends}"
short_desc="An IDE for Java and other languages"
maintainer="Juan RP <xtraeme@gmail.com>"
license="EPL"
homepage="http://eclipse.org"
only_for_archs="i686 x86_64"
2014-07-01 09:51:39 +02:00
_release=luna-R
2014-03-04 18:09:26 +01: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-07-01 09:51:39 +02:00
checksum=0ca7ab6c4a9dafc373e134848c9bec9e7a038c0db0c25c136fe56e3d51df5c1f
2014-03-04 18:09:26 +01: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-07-01 09:56:18 +02:00
checksum=9dc6465bbeca89364e35b52343e1e6d5a2b54df515e30bec6845a45806222fbe
2014-03-04 18:09:26 +01:00
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
}