1 # Contributor: Jakub Luzny <limoto94@gmail.com>
5 pkgdesc="Cross platform C++ network library"
7 url="http://www.jenkinssoftware.com/"
10 provides=("raknet=$pkgver")
11 source=(http://downloads.sourceforge.net/zeroballistics/external%20dependencies/src/raknet3.261.tar.gz
13 md5sums=('7df0cd95cab38a3854a8b5cec08eb47f'
14 '6bd636fe028aac184c20b3a50d83cd79')
18 # all of the Linux build system supplied by RakNet are broken
19 # we'll make our own lib manually YEAAAAAAAHHHHHHHHH1!!!
20 cd ${srcdir}/raknet${pkgver}/Source
21 msg "Hardcore static library compiling action"
22 g++ -lpthread -c *.cpp
23 msg "Hardcore static library archiving action"
26 msg "Hardcore shared library compiling action"
27 g++ -fPIC -lpthread -shared -o libraknet.so *.cpp
31 cd ${srcdir}/raknet${pkgver}/Source
32 msg "Hardcore installation action"
33 mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}
34 cp ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
36 mkdir -p ${pkgdir}/usr/lib/
37 cp libraknet.* ${pkgdir}/usr/lib/
39 mkdir -p ${pkgdir}/usr/include/raknet/
40 install -m644 *.h ${pkgdir}/usr/include/raknet/
42 # msg "Hardcore cleaning action"
43 # mkdir -p ${pkgdir}/usr/share/raknet/
44 # cp -r ../Samples ${pkgdir}/usr/share/raknet/
45 # find ${pkgdir}/usr/share/raknet/ -iname "*vcproj*" -delete
46 # find ${pkgdir}/usr/share/raknet/ -exec chmod 644 '{}' \;
47 msg "All done, YEAAAAAAAAHHHHHHHHHH1111!!!!"