updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / eclipse-platform-indigo / PKGBUILD
blob9e5c637b52d301f77bca8f66f3bbcce14f103224
1 # Maintainer: Shanto <shanto at hotmail>
2 # Contributor: Jesus Jerez <jhuss@archlinux.org.ve>
4 pkgname=eclipse-platform-indigo
5 _pkgname=eclipse-platform
6 pkgver=3.7RC1
7 _pkgbuild=201105122000
8 _pkgtype=S
9 pkgrel=1
10 pkgdesc="Eclipse Platform (Indigo) without plug-ins and SDK"
11 url="http://www.eclipse.org"
12 arch=('i686' 'x86_64')
13 license=('EPL')
14 depends=('java-environment>=6' 'gtk2>=2.20' 'libwebkit')
15 conflicts=('eclipse')
16 provides=('eclipse=3.7')
17 install=$_pkgname.install
18 changelog=$_pkgname.changelog
20 source=(
21         "http://www.eclipse.org/downloads/download.php?r=1&file=/eclipse/downloads/drops/${_pkgtype}-${pkgver}-${_pkgbuild}/eclipse-platform-${pkgver}-linux-gtk-x86_64.tar.gz"
22         "eclipse.sh"
23         "eclipse.svg"
24         "eclipse.desktop"
25         "eclipse.ini.patch"
28 md5sums=(
29         '4195376d99b73c44d09521de72cf5f54'
30         '8dbd219db72d2c913f2e086f19a65770'
31         'f083188c833ba05a3ce8c6b16a290c12'
32         '73c5c6ad00c72888080ff3cde413942f'
33         '3038cf6de788617aca33f94492c07dc1'
36 if [ "$CARCH" != "x86_64" ]; then
37         source[0]="http://www.eclipse.org/downloads/download.php?r=1&file=/eclipse/downloads/drops/${_pkgtype}-${pkgver}-${_pkgbuild}/eclipse-platform-${pkgver}-linux-gtk.tar.gz"
38         md5sums[0]='182c3288a6ba6e6262f557a98d61f5c9'
41 build() {
42         cd "${srcdir}/eclipse"
43         
44         patch -Np1 -i "${srcdir}/eclipse.ini.patch"
45         
46         install -d ${pkgdir}/usr/bin ${pkgdir}/usr/lib ${pkgdir}/usr/share/applications ${pkgdir}/usr/share/icons/hicolor/{16x16,32x32,48x48,scalable}/apps
47         
48         install -m755 "${srcdir}/eclipse.sh" "${pkgdir}/usr/bin/eclipse"
49         install -m644 "${srcdir}/eclipse.desktop" "${pkgdir}/usr/share/applications/"
50         mv "${srcdir}/eclipse" "${pkgdir}/usr/share/"
51         
52         ln -s /usr/share/eclipse/plugins/org.eclipse.platform_${pkgver}.v${_pkgbuild}/eclipse.png "${pkgdir}/usr/share/icons/hicolor/16x16/apps/eclipse.png"
53         ln -s /usr/share/eclipse/plugins/org.eclipse.platform_${pkgver}.v${_pkgbuild}/eclipse32.png "${pkgdir}/usr/share/icons/hicolor/32x32/apps/eclipse.png"
54         ln -s /usr/share/eclipse/plugins/org.eclipse.platform_${pkgver}.v${_pkgbuild}/eclipse48.png "${pkgdir}/usr/share/icons/hicolor/48x48/apps/eclipse.png"
55         install -Dm644 ${srcdir}/eclipse.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps/eclipse.svg
56         
57         ln -s /usr/lib/libwebkitgtk-1.0.so ${pkgdir}/usr/lib/libwebkit-1.0.so.2