1 # Maintainer: Kniyl <mathias(dot)ettinger(at)gmail(dot)com>
6 pkgdesc='the Virtual Reality Peripheral Network lib and tools'
8 url="http://www.cs.unc.edu/Research/vrpn"
11 source=('ftp://ftp.cs.unc.edu/pub/packages/GRIP/${pkgname}/${pkgname}_${pkgver//./_}.zip')
12 md5sums=('422f13fc9cbb62d36c96f3cc3b06cec9')
17 [[ "${pkgname}-build" ]] && rm -rf "${pkgname}-build"
18 mkdir "${pkgname}-build"
21 msg "Fixing vrpn.cfg path finding"
22 sed -i 's|"vrpn.cfg"|"/etc/vrpn.cfg"|' \
23 ../$pkgname/server_src/aureal_sound_server/vrpn_Sound_A3D.cpp \
24 ../$pkgname/server_src/ausim_sound_server/vrpn_Sound_ASM.cpp \
25 ../$pkgname/server_src/directx_sound_server/vrpn_Sound_DX9.cpp \
26 ../$pkgname/server_src/miles_sound_server/v5.0/sound_server.cpp \
27 ../$pkgname/server_src/miles_sound_server/v6.0/sound_server.cpp \
28 ../$pkgname/server_src/vrpn.C \
29 ../$pkgname/server_src/vrpn_Generic_server_object.C \
30 ../$pkgname/server_src/vrpn_Generic_server_object.h
33 -DCMAKE_INSTALL_PREFIX=/usr/ \
34 -DCMAKE_BUILD_TYPE=Release \
36 -DVRPN_BUILD_JAVA=OFF \
37 -DVRPN_BUILD_EXTRA_COMPILER_WARNINGS=ON \
38 "${srcdir}/${pkgname}"
43 cd "${srcdir}/${pkgname}-build"
45 make DESTDIR=$pkgdir install
47 mv "${pkgdir}/usr/etc" "$pkgdir"