updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / raknet / PKGBUILD
blobf2e44132cede258d0b3a40692863814b94c64d3e
1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 # Contributor: Robert Hollencamp <rhollencamp@gmail.com>
3 pkgname=raknet
4 pkgver=4.033
5 pkgrel=1
6 pkgdesc="Cross platform C++ network library"
7 arch=('i686' 'x86_64')
8 url="http://www.jenkinssoftware.com/"
9 license=('custom')
10 makedepends=('cmake')
11 source=(http://www.jenkinssoftware.com/raknet/downloads/RakNet_PC-${pkgver}.zip
12         FastDelegate.h.fixed
13         license.txt)
14 md5sums=('fbf57c494efc7be641f83d905c0b743d'
15          '733b8f5beb7a5eb451bdbb69fafff382'
16          '6bd636fe028aac184c20b3a50d83cd79')
18 build()
20   cd ${srcdir}
21   mkdir -p build
22   cd build
24   # enable LIBCAT_SECURITY features
25   sed -i -e s@//#define@#define@g ../Source/NativeFeatureIncludesOverrides.h
26   
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     ..
35   make
38 package()
40   cd ${pkgdir}
41   
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
45   
46   mkdir -p usr/lib/
47   cp ${srcdir}/build/Lib/DLL/libRakNetDynamic.so      usr/lib/
48   cp ${srcdir}/build/Lib/LibStatic/libRakNetStatic.a  usr/lib/
49   
50   mkdir -p usr/include/raknet/
51   install -m644 ${srcdir}/Source/*.h usr/include/raknet/