1 # Maintainer: Patrick Jackson <PatrickSJackson gmail com>
2 # Contributor: Jesus Jerez <jerezmoreno@gmail.com>
3 # based in eclipse PKGBUILD Rev 60114
8 pkgdesc="Eclipse IDE for C/C++ Developers"
11 url="http://eclipse.org"
12 depends=('java-environment' 'gtk2')
13 conflicts=('eclipse' 'eclipse-cdt' 'eclipse-mylyn')
14 provides=('eclipse' 'eclipse-cdt' 'eclipse-mylyn')
15 install=eclipse.install
16 if [ "$CARCH" = "x86_64" ]; then
17 source=(http://ftp.ussg.iu.edu/eclipse/technology/epp/downloads/release/indigo/R/eclipse-linuxtools-indigo-incubation-linux-gtk-x86_64.tar.gz eclipse.sh eclipse.desktop)
18 md5sums=('bd26da47f52c9d654cadc94dbcea2551'
19 '3e7a2d0004fd0dad9eda14c3be95f389'
20 'fd3d973486265e3d586a33732e591161')
22 source=(http://ftp.osuosl.org/pub/eclipse//technology/epp/downloads/release/indigo/R/eclipse-linuxtools-indigo-incubation-linux-gtk.tar.gz eclipse.sh eclipse.desktop)
23 md5sums=('3eb4fa38dbdb5df3bce0917d84f3d5e1'
24 '3e7a2d0004fd0dad9eda14c3be95f389'
25 'fd3d973486265e3d586a33732e591161')
29 install -m755 -d "${pkgdir}/usr/share"
30 mv "${srcdir}/eclipse" "${pkgdir}/usr/share/" || return 1
31 mkdir -p ${pkgdir}/usr/bin ${pkgdir}/usr/share/applications ${pkgdir}/usr/share/icons/hicolor/{16x16,32x32,48x48}/apps || return 1
32 install -m755 "${srcdir}/eclipse.sh" "${pkgdir}/usr/bin/eclipse" || return 1
33 install -m644 "${srcdir}/eclipse.desktop" "${pkgdir}/usr/share/applications/" || return 1
34 ln -s /usr/share/eclipse/plugins/org.eclipse.platform_3.7.0.v201106131736/eclipse.png "${pkgdir}/usr/share/icons/hicolor/16x16/apps/eclipse.png" || return 1
35 ln -s /usr/share/eclipse/plugins/org.eclipse.platform_3.7.0.v201106131736/eclipse32.png "${pkgdir}/usr/share/icons/hicolor/32x32/apps/eclipse.png" || return 1
36 ln -s /usr/share/eclipse/plugins/org.eclipse.platform_3.7.0.v201106131736/eclipse48.png "${pkgdir}/usr/share/icons/hicolor/48x48/apps/eclipse.png" || return 1