updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / eclipse33 / PKGBUILD
blob51196a477d4881fccc6a236a581be43639cd32a7
1 # Contributor: Andrew Wright <andreww@photism.org>
2 # Contributor: Andreas W. Hauser <andy-aur@splashground.de>
3 # Maintainer: Jonathan Wiersma <archaur at jonw dot org>
5 pkgname=eclipse33
6 pkgver=3.3.2
7 _reldate=200802211800
8 pkgrel=2
9 pkgdesc="Eclipse 3.3 (An IDE for Java and other languages)"
10 arch=('i686' 'x86_64')
11 url="http://eclipse.org"
12 depends=('java-environment' 'gtk2' 'unzip' 'xulrunner')
13 install=eclipse.install
14 makedepends=('zip')
15 provides=("eclipse=${pkgver}")
16 license=("EPL/1.1")
17 md5sums=(a59b9e8911e59da4cf7a5c5fc6a178e4
18          97eeb43cd41bd605224936526678bd4f
19          f5963a38c3c8eb3f66d8a1134205056c)
20 if [ "$CARCH" = "x86_64" ]; then
21     _arch=-x86_64
22     md5sums=(b0a727dcd931f99d05787ba1970f9b18
23              97eeb43cd41bd605224936526678bd4f
24                   f5963a38c3c8eb3f66d8a1134205056c)
26 source=("http://archive.eclipse.org/eclipse/downloads/drops/R-${pkgver}-${_reldate}/eclipse-SDK-$pkgver-linux-gtk$_arch.tar.gz"
27        eclipse33.desktop
28             eclipse.ini.patch)
30 build() {
31         cd $srcdir/eclipse || return 1
32         
33         # patch to increase default memory limits
34         patch -p0 < ../eclipse.ini.patch || return 1
35         mv eclipse eclipse33
36         mv eclipse.ini eclipse33.ini
37         
38         # install eclipse33
39         mkdir -p $pkgdir/usr/share || return 1
40         mv $srcdir/eclipse $pkgdir/usr/share/eclipse33 || return 1
41         
42         # install misc
43         mkdir -p $pkgdir/etc/profile.d \
44                 $pkgdir/usr/share/applications \
45                 || return 1
46         install -m644 $srcdir/eclipse33.desktop \
47         $pkgdir/usr/share/applications/eclipse33.desktop || return 1