This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

AUR jogl update

By: a guest on Jan 25th, 2014  |  syntax: None  |  size: 2.67 KB  |  views: 37  |  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. # Maintainer: Victor Dmitriyev <mrvvitek@gmail.com>
  2. # Contributor: Alexander Rødseth <rodseth@gmail.com>
  3. # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
  4. # Contributor: Simon Lipp <sloonz+aur@gmail.com>
  5. # Contributor: Eric Schisselbauer <eric.schisselbauer@gmail.com>
  6.  
  7. pkgname=jogl
  8. pkgver=2.1.3
  9. pkgrel=1
  10. pkgdesc='OpenGL bindings for Java'
  11. arch=('x86_64' 'i686')
  12. url="http://jogamp.org/"
  13. license=('BSD')
  14. depends=('java-runtime' 'libgl')
  15. source=("jogl.license.txt"
  16.   "gluegen.license.txt"
  17.         "http://jogamp.org/deployment/v${pkgver}/jar/orig/jogl-all.jar"
  18.         "http://jogamp.org/deployment/v${pkgver}/jar/orig/gluegen-rt.jar")
  19. md5sums=('4f7cc7c2a95c4d1e1d0670ed497c06b3'
  20.          '88456d8059e998bff8868c2b4d0347ce'
  21.          '9de708bbc12ce4d26de83deb1d6c641a'
  22.          '5dae78d64502a07c78ada81d06b64778')
  23.  
  24. [[ "$CARCH" == "i686" ]] && {
  25. source+=("http://jogamp.org/deployment/v${pkgver}/jar/orig/jogl-all-natives-linux-i586.jar"
  26.         "http://jogamp.org/deployment/v${pkgver}/jar/orig/gluegen-rt-natives-linux-i586.jar")
  27. md5sums+=('481d68d10d47bf080dcb175cf786139f'
  28.         '682f9a9087026eb3ad1e8d63cd46a211')
  29. }
  30. [[ "$CARCH" == "x86_64" ]] && {
  31. source+=("http://jogamp.org/deployment/v${pkgver}/jar/orig/jogl-all-natives-linux-amd64.jar"
  32.         "http://jogamp.org/deployment/v${pkgver}/jar/orig/gluegen-rt-natives-linux-amd64.jar")
  33. md5sums+=('655c0b6e0649f10090646d0bfaed9206'
  34.         '1d6c606da17ce4e3d5b48bcca16cf286')
  35. }
  36. noextract=({jogl-all,gluegen-rt}.jar)
  37.  
  38. package() {
  39.   cd "${srcdir}"
  40.   install -Dm644 "jogl-all.jar" "${pkgdir}/usr/share/java/${pkgname}/jogl-all.jar"
  41.   install -Dm644 "gluegen-rt.jar" "${pkgdir}/usr/share/java/${pkgname}/gluegen-rt.jar"
  42.   install -Dm644 "libgluegen-rt.so" "${pkgdir}/usr/lib/${pkgname}/libgluegen-rt.so"
  43.   install -Dm644 "libjogl_desktop.so" "${pkgdir}/usr/lib/${pkgname}/libjogl_desktop.so"
  44.   install -Dm644 "libjogl_mobile.so" "${pkgdir}/usr/lib/${pkgname}/libjogl_mobile.so"
  45.   install -Dm644 "libnativewindow_awt.so" "${pkgdir}/usr/lib/${pkgname}/libnativewindow_awt.so"
  46.   install -Dm644 "libnativewindow_x11.so" "${pkgdir}/usr/lib/${pkgname}/libnativewindow_x11.so"
  47.   install -Dm644 "libnewt.so" "${pkgdir}/usr/lib/${pkgname}/libnewt.so"
  48.   install -Dm644 "jogl.license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/jogl.license.txt"
  49.   install -Dm644 "gluegen.license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/gluegen.license.txt"
  50.  
  51.   cd "${pkgdir}/usr/share/java/${pkgname}"
  52.   ln -s "jogl-all.jar" "jogl2.jar"
  53.   ln -s "gluegen-rt.jar" "gluegen2-rt.jar"
  54.   cd "${pkgdir}/usr/lib"
  55.   ln -s "jogl" "jogl2"
  56.   ln -s "jogl" "gluegen2"
  57.   ln -s "libgluegen-rt.so" "jogl/libgluegen2-rt.so"
  58. }
  59.  
  60. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data