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

Untitled

By: a guest on May 25th, 2012  |  syntax: Bash  |  size: 1.06 KB  |  views: 191  |  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=bin32-jre
  2. pkgver=7u4
  3. pkgrel=1
  4. pkgdesc="32-bit Sun java with the new mozilla plugin for Arch x86_64"
  5. arch=('x86_64')
  6. _arch=i386
  7. license=('custom')
  8. url="https://jdk6.dev.java.net"
  9. depends=('lib32-glibc' 'lib32-libgl' 'lib32-libx11' 'lib32-libxtst'
  10. 'mozilla-common' 'lib32-libxi')
  11. makedepends=('diffutils' 'fakeroot' 'pkgconfig')
  12. install=bin32-jre.install
  13. bin32name=jdk-${pkgver}-dlj-linux-i586
  14. source=("$bin32name.tar.gz::http://javadl.sun.com/webapps/download/AutoDL?BundleId=63202"
  15.         'java-policy-settings.desktop'
  16.         'jre.sh'
  17.         'jre.csh'
  18.         'javaws-launcher')
  19. md5sums=('8e6db43d9a7cac724be2cb9d1329e702'
  20.          '6614b04176b9b7dfe26f22e9ce846801'
  21.          '7cd3dc10e7a37468cad4053a067dcd01'
  22.          'cc90df2df6fe80fab885a80036d420a1'
  23.          '45c15a6b4767288f2f745598455ea2bf')
  24.  
  25. package() {
  26.   # Create required dirs
  27.   cd $(ls -1d jre1.7.0_*/ | tail -1)
  28.   mkdir -p "$pkgdir"/opt/bin32-jre/
  29.  
  30.   # Remove empty and redundant dirs from 'lib'
  31.   rm -r plugin
  32.  
  33.   # Move stuff in place
  34.   mv * "$pkgdir"/opt/bin32-jre/
  35. }
clone this paste RAW Paste Data