Want more features on Pastebin? Sign Up, it's FREE!
Guest

eclipse-platform PKGBUILD

By: a guest on Jul 15th, 2012  |  syntax: Bash  |  size: 2.39 KB  |  views: 30  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. pkgname=eclipse-platform
  2. pkgver=4.2
  3. pkgrel=1
  4. _date=201206081400
  5. pkgdesc="Eclipse Platform without plug-ins and SDK (a minimal installation suitable for complete per-user customization with the built-in Eclipse package manager)"
  6. url="http://eclipse.org"
  7. arch=('i686' 'x86_64')
  8. license=('EPL')
  9. depends=('gtk2' 'hicolor-icon-theme')
  10. optdepends=('libwebkit: Internal browser component and tooltips' 'libjpeg6-turbo: JPEG supporting library' 'libpng12: PNG supporting library')
  11. conflicts=('eclipse')
  12. provides=("eclipse=$pkgver")
  13. install=eclipse-platform.install
  14.  
  15. source=(
  16.     "ftp://ftp.osuosl.org/pub/eclipse/eclipse/downloads/drops4/R-${pkgver}-${_date}/eclipse-platform-${pkgver}-linux-gtk.tar.gz"
  17.     "eclipse.sh"
  18.     "eclipse.svg"
  19.     "eclipse.desktop"
  20. )
  21.  
  22. md5sums=(
  23.     'f7d942a0f758ba68be73899baee2c74c'
  24.     '8dbd219db72d2c913f2e086f19a65770'
  25.     'f083188c833ba05a3ce8c6b16a290c12'
  26.     '73c5c6ad00c72888080ff3cde413942f'
  27. )
  28.  
  29. if [ "$CARCH" = "x86_64" ]; then
  30.     source[0]="ftp://ftp.osuosl.org/pub/eclipse/eclipse/downloads/drops4/R-${pkgver}-${_date}/eclipse-platform-${pkgver}-linux-gtk-$CARCH.tar.gz"
  31.     md5sums[0]='0e4a33e4cfba9c5282a43736d33b7d56'
  32. fi
  33.  
  34. package() {
  35.     # install eclipse
  36.     install -m755 -d "$pkgdir/usr/share"
  37.     cp -r "${srcdir}/eclipse" "$pkgdir/usr/share/"
  38.    
  39.     # install misc
  40.     install -m755 -d ${pkgdir}/usr/bin ${pkgdir}/usr/share/applications ${pkgdir}/usr/share/icons/hicolor/{16x16,32x32,48x48,256x256,scalable}/apps
  41.    
  42.     install -m755 "${srcdir}/eclipse.sh" "${pkgdir}/usr/bin/eclipse"
  43.     install -m644 "${srcdir}/eclipse.desktop" "${pkgdir}/usr/share/applications/"
  44.    
  45.     # install icons
  46.     install -m644 "${srcdir}/eclipse/plugins/org.eclipse.platform_${pkgver}.0.v${_date}/eclipse16.png" "${pkgdir}/usr/share/icons/hicolor/16x16/apps/eclipse.png"
  47.     install -m644 "${srcdir}/eclipse/plugins/org.eclipse.platform_${pkgver}.0.v${_date}/eclipse32.png" "${pkgdir}/usr/share/icons/hicolor/32x32/apps/eclipse.png"
  48.     install -m644 "${srcdir}/eclipse/plugins/org.eclipse.platform_${pkgver}.0.v${_date}/eclipse48.png" "${pkgdir}/usr/share/icons/hicolor/48x48/apps/eclipse.png"
  49.     install -m644 "${srcdir}/eclipse/plugins/org.eclipse.platform_${pkgver}.0.v${_date}/eclipse256.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/eclipse.png"
  50.    
  51.     install -m644 ${srcdir}/eclipse.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps/eclipse.svg
  52. }
clone this paste RAW Paste Data