1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 # Contributor: Robert Hollencamp <rhollencamp@gmail.com>
6 pkgdesc="Cross platform C++ network library"
8 url="http://www.jenkinssoftware.com/"
11 source=(http://www.jenkinssoftware.com/raknet/downloads/RakNet_PC-${pkgver}.zip
14 md5sums=('fbf57c494efc7be641f83d905c0b743d'
15 '733b8f5beb7a5eb451bdbb69fafff382'
16 '6bd636fe028aac184c20b3a50d83cd79')
24 # enable LIBCAT_SECURITY features
25 sed -i -e s@//#define@#define@g ../Source/NativeFeatureIncludesOverrides.h
27 # fix compilation problem with included FastDelegate.h
28 mv ../Source/cat/port/FastDelegate.h ../Source/cat/port/FastDelegate.h.no
29 cp ../FastDelegate.h.fixed ../Source/cat/port/FastDelegate.h
31 cmake -DCMAKE_BUILD_TYPE=Release \
32 -DCMAKE_INSTALL_PREFIX=/usr \
33 -DDISABLE_EXAMPLES=True ..
42 # DESTDIR is not used correctly so copy library and its headers manually
43 mkdir -p usr/share/licenses/${pkgname}
44 cp ${srcdir}/license.txt usr/share/licenses/${pkgname}/license.txt
47 cp ${srcdir}/build/Lib/DLL/libRakNetDynamic.so usr/lib/
48 cp ${srcdir}/build/Lib/LibStatic/libRakNetStatic.a usr/lib/
50 mkdir -p usr/include/raknet/
51 install -m644 ${srcdir}/Source/*.h usr/include/raknet/