updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / eclipse-pdt-all-in-one / PKGBUILD
blob9ce1a034f408c07f8e8b369a813718edddaddaf1
1 # $Id: PKGBUILD 8114 2008-08-06 14:27:35Z paul $
2 # Contributor: Andrew Wright <andreww@photism.org>
3 # Contributor: Andreas W. Hauser <andy-aur@splashground.de>
4 # Contributor: Paul Mattal <paul@archlinux.org>
5 # Contributor: Rafael Martins <rafael@rafaelmartins.com>
6 # Contributor: Andrea Scaripino 'bash' andrea@archlinux.org>
7 # Maintainer: Jordi Cerdan 'jcerdan' <jcerdan@tecob.com>
9 pkgname=eclipse-pdt-all-in-one
10 pkgver=3.0.2
11 pkgrel=2
12 pkgdesc="PHP Development Tools framework for the Eclipse platform (included)."
13 arch=('i686' 'x86_64')
14 url="http://www.eclipse.org/pdt/"
15   #  "${pkgdir}/usr/share/icons/hicolor/32x32/apps/eclipse.png" || return 1
16 install=eclipse.install
17 provides=('eclipse=3.7' 'eclipse-pdt=3.0')
18 depends=('java-environment' 'fontconfig' 'libxrender' 'libxext' 'hicolor-icon-theme')
19 conflicts=('eclipse-emf' 'eclipse-dltk-core' 'eclipse-dltk-mylyn' 'eclipse-dtp' 'eclipse-gef' 'eclipse-wtp')
20 license=('EPL')
21 md5sums=('a64635e2c51f77d74d64d19d8bc831f0'
22          'a1666ff79a3c3d48e535d789d4a1b9ff'
23          '69c3ee11eb451d042575150c5b727f45'
24          'ee66a334bc443fd23ad9bc080dc6ea69')
25 [ ${CARCH} = 'x86_64' ] && md5sums[0]="11127e0023b9a42f0e874b0e497d2f00"
27 source=('http://zend-sdk.googlecode.com/files/eclipse-php-3.0.2.v2011102768-x86.tar.gz'
28         'eclipse.sh'
29         'eclipse.desktop'
30         'eclipse.ini.patch')
31 [ ${CARCH} = 'x86_64' ] && source[0]="http://zend-sdk.googlecode.com/files/eclipse-php-3.0.2.v2011102768-x86_64.tar.gz"
34 build() {
35   cd ${srcdir} || return 1
36   #patch
37   #patch -Np0 -i "${srcdir}/eclipse.ini.patch" || return 1
39   # install eclipse
40   install -m755 -d "${pkgdir}/usr/share"
41   mv "${srcdir}/eclipse-php" "${pkgdir}/usr/share/eclipse" || return 1
43   # install misc
44   mkdir -p ${pkgdir}/usr/bin ${pkgdir}/usr/share/applications \
45     ${pkgdir}/usr/share/icons/hicolor/{16x16,32x32,48x48}/apps || return 1
46   install -m755 "${srcdir}/eclipse.sh" "${pkgdir}/usr/bin/eclipse" || return 1
47   install -m644 "${srcdir}/eclipse.desktop" "${pkgdir}/usr/share/applications/" || return 1
48   #ln -s /usr/share/eclipse/plugins/org.eclipse.sdk_${_internal_pkgver}.v${_date}/eclipse.png \
49   #  "${pkgdir}/usr/share/icons/hicolor/16x16/apps/eclipse.png" || return 1
50   #ln -s /usr/share/eclipse/plugins/org.eclipse.sdk_${_internal_pkgver}.v${_date}/eclipse32.png \
51   #  "${pkgdir}/usr/share/icons/hicolor/32x32/apps/eclipse.png" || return 1
52   #ln -s /usr/share/eclipse/plugins/org.eclipse.sdk_${_internal_pkgver}.v${_date}/eclipse48.png \
53   #  "${pkgdir}/usr/share/icons/hicolor/48x48/apps/eclipse.png" || return 1
56   # install icon
57   #install -D -m644 $startdir/src/eclipse-icon-clean.svg $startdir/pkg/usr/share/icons/hicolor/scalable/apps/eclipse.svg || return 1