Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 13th, 2013  |  syntax: Bash  |  size: 1.71 KB  |  views: 17  |  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: Mathias Baumann <marenz@supradigital.org>
  2.  
  3. pkgname=lib32-physx
  4. pkgver=2.8.1
  5. pkgrel=1
  6. pkgdesc="A large physics middleware library for game production"
  7. arch=('x86_64')
  8. url="http://www.nvidia.com"
  9. license=('custom')
  10. makedepends=('rpmextract')
  11. depends=('lib32-freeglut')
  12. conflicts=('physx')
  13. install=lib32-physx.install
  14. options=(docs !strip)
  15. source=(http://developer.download.nvidia.com/PhysX/${pkgver}/PhysX_${pkgver}_SDK_CoreLinux_rpm.tar.gz
  16.         lib32-physx.conf)
  17.  
  18. build() {
  19.   cd $srcdir
  20.  
  21.   rpmextract.sh libphysx-$pkgver-$pkgver-5.i386.rpm
  22.   rpmextract.sh libphysx-common-$pkgver-5.i386.rpm
  23.   rpmextract.sh libphysx-dev-$pkgver-$pkgver-5.i386.rpm
  24.   rpmextract.sh libphysx-doc-$pkgver-$pkgver-5.i386.rpm
  25.   rpmextract.sh libphysx-extras-$pkgver-$pkgver-5.i386.rpm
  26.   rpmextract.sh libphysx-samples-$pkgver-$pkgver-5.i386.rpm
  27. }
  28.  
  29. package() {
  30.   cd $srcdir
  31.  
  32.   mkdir -p $pkgdir/usr/lib32/ || return 1
  33.   cp -R usr/lib/*.so* $pkgdir/usr/lib32/ || return 1
  34.   cp -R usr/lib/PhysX $pkgdir/usr/lib32/ || return 1
  35.   cp -R usr/include/ $pkgdir/usr/include/ || return 1
  36.   cp -R etc/ $startdir/pkg || return 1
  37.   mkdir -p $pkgdir/etc/ld.so.conf.d
  38.   cp $srcdir/lib32-physx.conf $pkgdir/etc/ld.so.conf.d
  39.  
  40.   mkdir -p $pkgdir/usr/share/licenses/$pkgname
  41.   cp usr/share/doc/libphysx-common/copyright $pkgdir/usr/share/licenses/$pkgname/
  42.  
  43.   cd $startdir/pkg/usr/lib32/PhysX/v$pkgver || return 1
  44.   ln -s libPhysXCore.so.1 libPhysXCore.so
  45.   ln -s libNxCooking.so.1 libNxCooking.so
  46.   ln -s libNxCharacter.so.1 libNxCharacter.so
  47.  
  48.   cd $startdir/pkg/usr/lib32 || return 1
  49.   ln -s libPhysXLoader.so.1 libPhysXLoader.so
  50. }
  51.  
  52. md5sums=('beeabb4b0cfd278152cac147571480e1'
  53.          '1e6dc0c7d3d8dafc08de955d3003fa14')