updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / lib32-physx / PKGBUILD
blob031b49669e6b6c5544291e961a2fab93ec16d948
1 # Maintainer: Mathias Baumann <marenz@supradigital.org> 
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 options=(docs !strip)
14 install=(physx.install)
15 source=(http://developer.download.nvidia.com/PhysX/${pkgver}/PhysX_${pkgver}_SDK_CoreLinux_rpm.tar.gz)
16 md5sums=('beeabb4b0cfd278152cac147571480e1')
18 build() {
19   cd $startdir/src
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   mv usr/sbin usr/bin
29   
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
33   
34   mkdir -p $pkgdir/usr/share/licenses/$pkgname
35   cp usr/share/doc/libphysx-common/copyright $pkgdir/usr/share/licenses/$pkgname/
36   
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
41   
42   cd $startdir/pkg/opt/lib32/usr/lib || return 1
43   ln -s libPhysXLoader.so.1 libPhysXLoader.so