updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / raknet2 / PKGBUILD
blob846c09063cdd6cb0636caac49b4b46e759a4bb9b
1 # Contributor: Kevin Whitaker <eyecreate at gmail dot com>
2 pkgname=raknet2
3 pkgver=2.0
4 pkgrel=1
5 pkgdesc="Cross platform C++ network library (GPL version)"
6 arch=('i686' 'x86_64')
7 url="http://www.jenkinssoftware.com/"
8 license=('GPL')
9 #makedepends=('autoconf')
10 source=(http://www.sumwars.org/data/Raknet2_0.tar.gz)
11 md5sums=('bfdc95cf31d1381fb97631a3f07bc6c8')
15 build() {
16   cd ${srcdir}/Raknet2_0
17   make ||return 1
18   cd ${srcdir}/Raknet2_0/Source
19   msg "Hardcore installation action"
20   
21   mkdir -p ${pkgdir}/usr/lib/pkgconfig
22   cp libraknet.* ${pkgdir}/usr/lib/
23   cp ../Lib/linux/librak* $pkgdir/usr/lib
24   cp ../Lib/linux/rakvoice.* $pkgdir/usr/lib
25   mkdir -p ${pkgdir}/usr/include/raknet/
26   install -m644 ../Include/*.h ${pkgdir}/usr/include/raknet/
27   install -m644 ../RakNet.pc $pkgdir/usr/lib/pkgconfig
28   
29   msg "Hardcore cleaning action"
30   mkdir -p ${pkgdir}/usr/share/raknet/
31   cp -r ../Samples ${pkgdir}/usr/share/raknet/
32   find ${pkgdir}/usr/share/raknet/ -iname "*vcproj*" -delete
33   find ${pkgdir}/usr/share/raknet/ -exec chmod 644 '{}' \;
34         msg "All done, YEAAAAAAAAHHHHHHHHHH1111!!!! +1"
35