1 # Contributor: Figo.zhang <figo1802@gmail.com>
6 pkgdesc="Eclipse IDE for C/C++ Developers (gtk verison)"
9 url="http://eclipse.org"
10 depends=('java-runtime' 'gtk2')
11 install=eclipse.install
12 if [ "$CARCH" = "x86_64" ]; then
13 source=(http://mirror.bjtu.edu.cn/eclipse/technology/epp/downloads/release/helios/R/eclipse-cpp-helios-linux-gtk-x86_64.tar.gz eclipse-cpp.desktop)
14 md5sums=('0322d812686dc85a7be52f8a463cd18c'
15 '64db293b022d078fac9faccfee212b48')
17 source=(http://mirror.bjtu.edu.cn/eclipse/technology/epp/downloads/release/helios/R/eclipse-cpp-helios-linux-gtk.tar.gz eclipse-cpp.desktop)
18 md5sums=('872ba1cfc97c97cbaf8f6467e244e5ed'
19 '64db293b022d078fac9faccfee212b48')
23 #install -m755 -d "${pkgdir}/opt/eclipse-cpp/"
24 #mv -v "${srcdir}/eclipse" "${pkgdir}/opt/eclipse-cpp/" || return 1
26 mv -v $srcdir/eclipse $pkgdir/opt/eclipse-cpp
27 mkdir -p ${pkgdir}/usr/share/applications ${pkgdir}/usr/share/icons/hicolor/{16x16,32x32,48x48}/apps || return 1
28 install -m644 "${srcdir}/eclipse-cpp.desktop" "${pkgdir}/usr/share/applications/" || return 1
29 ln -s /opt/eclipse-cpp/plugins/org.eclipse.platform_3.6.0.v201006080911/eclipse.png "${pkgdir}/usr/share/icons/hicolor/16x16/apps/eclipse-cpp.png" || return 1
30 ln -s /opt/eclipse-cpp/plugins/org.eclipse.platform_3.6.0.v201006080911/eclipse32.png "${pkgdir}/usr/share/icons/hicolor/32x32/apps/eclipse-cpp.png" || return 1
31 ln -s /opt/eclipse-cpp/plugins/org.eclipse.platform_3.6.0.v201006080911/eclipse48.png "${pkgdir}/usr/share/icons/hicolor/48x48/apps/eclipse-cpp.png" || return 1