You are not logged in.

#1 2008-02-18 17:57:10

wizzard
Member
From: PA, US
Registered: 2006-10-17
Posts: 33

RakNet

I am using the library RakNet for a programming project I am working on, and since it isn't in AUR I thought I'd make a PKGBUILD. This is my first PKGBUILD so I'd thought I'd post it here first before the AUR; please tell me if I have it set up correctly (it works fine for me). Also, I'm not entirely sure what to put in the license field. Anyway, here it is:

# Contributor: Robert Hollencamp <rhollencamp@gmail.com
pkgname=raknet
pkgver=3.02
pkgrel=1
pkgdesc="Cross platform C++ network library"
arch=('i686')
url="http://www.jenkinssoftware.com/"
license=('Creative Commons Attribution - NonCommercial 2.5')
groups=()
depends=()
makedepends=('autoconf')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=(http://superb-west.dl.sourceforge.net/sourceforge/raknetjenkinsso/RakNet$pkgver.zip)
noextract=()
md5sums=('949d5cf422be14194be7bcf004052eab')

build() {
  # in 3.02, readme.txt.in was mistakenly named readme.txt, so we have to move it
  mv readme.txt readme.txt.in
  ./bootstrap
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR="$pkgdir" install
}

Offline

#2 2008-02-18 22:42:41

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: RakNet

Works fine for me too (also i686).

Some minor issues:

Delete empty fields like groups(), depends()...

Let license be license=('custom') and install all license files in $pkgdir/usr/share/licenses/pkgname.

I wonder why there are so many documentation files and no working install-step in the build procedure (at least I didn't find them).

Offline

Board footer

Powered by FluxBB