updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / eclipse-c++ / PKGBUILD
blobe0ca5e9d664b86a771a57573a4fb72a1cab5dbbd
1 # Contributor: Figo.zhang <figo1802@gmail.com>
3 pkgname=eclipse-c++
4 pkgver=7.0.0
5 pkgrel=3
6 pkgdesc="Eclipse IDE for C/C++ Developers (gtk verison)"
7 arch=(i686 x86_64)
8 license=('EPL/1.1')
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')
16 else
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')
22 build() {
23   #install -m755 -d "${pkgdir}/opt/eclipse-cpp/"
24   #mv -v "${srcdir}/eclipse" "${pkgdir}/opt/eclipse-cpp/" || return 1
25   mkdir -p $pkgdir/opt/
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