updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / raknet-3.261 / PKGBUILD
blob582990d04aad1ba19a13a674f319e72fbfbf1965
1 # Contributor: Jakub Luzny <limoto94@gmail.com>
2 pkgname=raknet-3.261
3 pkgver=3.261
4 pkgrel=1
5 pkgdesc="Cross platform C++ network library"
6 arch=('i686' 'x86_64')
7 url="http://www.jenkinssoftware.com/"
8 license=('custom')
9 conflicts=('raknet')
10 provides=("raknet=$pkgver")
11 source=(http://downloads.sourceforge.net/zeroballistics/external%20dependencies/src/raknet3.261.tar.gz
12         license.txt)
13 md5sums=('7df0cd95cab38a3854a8b5cec08eb47f'
14          '6bd636fe028aac184c20b3a50d83cd79')
17 build() {
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"
24   ar rc libraknet.a *.o
25   
26   msg "Hardcore shared library compiling action"
27   g++ -fPIC -lpthread -shared -o libraknet.so *.cpp
30 package() {
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
35   
36   mkdir -p ${pkgdir}/usr/lib/
37   cp libraknet.* ${pkgdir}/usr/lib/
38   
39   mkdir -p ${pkgdir}/usr/include/raknet/
40   install -m644 *.h ${pkgdir}/usr/include/raknet/
41   
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!!!!"
48
49 # vim: ts=2 sw=2
50 #category: lib