Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

lib32-virtualgl_2.3.2_PKGBUILD

By: a guest on Jul 8th, 2012  |  syntax: Bash  |  size: 1.30 KB  |  hits: 58  |  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: FigoDaPaura <ffigoDaPaura>
  2.  
  3. pkgname=lib32-virtualgl
  4. pkgver=2.3.1
  5. pkgrel=0
  6. pkgdesc="32-bit serverside components for 64-bit VirtualGL servers."
  7. arch=('x86_64')
  8. url="http://virtualgl.org"
  9. license=('LGPL')
  10. depends=('virtualgl' 'lib32-libxv' 'lib32-turbojpeg' 'lib32-mesa' 'lib32-libx11' 'lib32-libxext' 'lib32-libxau')
  11. makedepends=('cmake' 'gcc-multilib')
  12. conflicts=('virtualgl32-bin')
  13.  
  14. sha1sums=('087f2c8cab080e7d68d22ee5f08cb39437e63d8d')
  15.  
  16. source=("http://downloads.sourceforge.net/project/virtualgl/VirtualGL/$pkgver/VirtualGL-$pkgver.tar.gz")
  17.  
  18. build() {
  19.   cd "$srcdir/VirtualGL-$pkgver"
  20.  
  21.   export CC="gcc -m32"
  22.   export CXX="g++ -m32"
  23.   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  24.  
  25.   mkdir -p build
  26.   cd build
  27.  
  28.   cmake .. -DCMAKE_INSTALL_PREFIX=/opt/VirtualGL -DTJPEG_INCLUDE_DIR=/usr/include -DTJPEG_LIBRARY=/usr/lib32/libturbojpeg.so \
  29.     -DVGL_LIBDIR=/usr/lib32 -DVGL_BINDIR=/usr/bin -DX11_X11_LIB=/usr/lib32/libX11.so -DX11_Xext_LIB=/usr/lib32/libXext.so \
  30.     -DOPENGL_gl_LIBRARY=/usr/lib32/libGL.so
  31.   make
  32. }
  33.  
  34. package() {
  35.   cd "$srcdir/VirtualGL-$pkgver/build"
  36.   make install DESTDIR="$pkgdir"
  37.  
  38.   cd "$pkgdir/usr"
  39.   mv bin/glxspheres glxspheres-32
  40.   rm -rf bin
  41.   mkdir -p bin
  42.   mv glxspheres-32 bin/
  43.  
  44.   cd "$pkgdir/opt/VirtualGL"
  45.   rm -rf doc
  46.   rm -rf include
  47. }