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

PKGBUILD

By: a guest on May 18th, 2011  |  syntax: None  |  size: 0.96 KB  |  views: 75  |  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. # Contributor: Jonathan Wiersma <archaur at jonw dot org>
  2.  
  3. pkgname=java3d
  4. pkgver=1.5.2
  5. pkgrel=3
  6. pkgdesc="High-level constructs to create and manipulate 3D geometry"
  7. arch=('i686' 'x86_64')
  8. url="https://java3d.dev.java.net/"
  9. license=('custom:"JRL"')
  10. depends=('java-runtime' 'libgl')
  11. makedepends=('unzip')
  12. _pkgname=j3d
  13. if [ "$CARCH" = "i686" ] ; then
  14.         _arch=i586
  15.     md5sums=('0501179d850e6d05d30f2a3df861c2a5')
  16. else
  17.         _arch=amd64
  18.     md5sums=('541d5038c54bbec2f1d311dfc5f68890')
  19. fi
  20. source=(http://download.java.net/media/java3d/builds/release/$pkgver/$_pkgname-${pkgver//./_}-linux-$_arch.zip)
  21.  
  22. package() {
  23.         cd $srcdir/$_pkgname-${pkgver//./_}-linux-$_arch || return 1
  24.         install -D -m644 LICENSE-Java3D-v${pkgver//./_}.txt $pkgdir/usr/share/licenses/$_pkgname/LICENSE || return 1
  25.  
  26.         install -d -m755 $pkgdir/$JAVA_HOME/jre || return 1
  27.         cd $pkgdir/$JAVA_HOME/jre || return 1
  28.         unzip $srcdir/$_pkgname-${pkgver//./_}-linux-$_arch/$_pkgname-jre.zip || return 1
  29. }
clone this paste RAW Paste Data