1 # Maintainer: Mathias Baumann <marenz@supradigital.org>
6 pkgdesc="A large physics middleware library for game production"
8 url="http://www.nvidia.com"
10 makedepends=('rpmextract')
11 depends=('lib32-freeglut')
14 install=(physx.install)
15 source=(http://developer.download.nvidia.com/PhysX/${pkgver}/PhysX_${pkgver}_SDK_CoreLinux_rpm.tar.gz)
16 md5sums=('beeabb4b0cfd278152cac147571480e1')
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
30 mkdir -p $startdir/pkg/opt/lib32/ || return 1
31 cp -R usr/ $startdir/pkg/opt/lib32/ || return 1
32 cp -R etc/ $startdir/pkg || return 1
34 mkdir -p $pkgdir/usr/share/licenses/$pkgname
35 cp usr/share/doc/libphysx-common/copyright $pkgdir/usr/share/licenses/$pkgname/
37 cd $startdir/pkg/opt/lib32/usr/lib/PhysX/v$pkgver || return 1
38 ln -s libPhysXCore.so.1 libPhysXCore.so
39 ln -s libNxCooking.so.1 libNxCooking.so
40 ln -s libNxCharacter.so.1 libNxCharacter.so
42 cd $startdir/pkg/opt/lib32/usr/lib || return 1
43 ln -s libPhysXLoader.so.1 libPhysXLoader.so