updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / guessnet / PKGBUILD
blob2a14b196b2e9926a5ad806102c1ca90865365ca9
1 # Contributor: Mildred <mildred593 at online dot fr>
3 pkgname=guessnet
4 pkgver=svn
5 pkgrel=20070309
6 pkgdesc="Guess network configuration"
7 url="http://guessnet.alioth.debian.org/"
9 makedepends=('subversion' 'autoconf' 'automake' 'make' 'tut-framework' 'libnet' 'libwibble')
10 depends=('libnet' 'libwibble')
11 conflicts=('guessnet')
12 replaces=('guessnet')
13 provides=('guessnet')
14 options=()
16 install=()
17 source=()
18 md5sums=()
20 _svntrunk="svn://svn.debian.org/guessnet/trunk"
21 _svnmod="guessnet"
23 _log() {
24     msg "$*"
25     "$@"
26     return $?
29 build() {
30     cd "$startdir/src/"                         || return 1
31     if [ -d guessnet ]; then
32         cd guessnet                             || return 1
33         _log svn up                             || return 1
34     else
35         _log svn co "${_svntrunk}" "${_svnmod}" || return 1
36         cd guessnet                             || return 1
37     fi
38     #msg "Disable tests"
39     #_log sed -i.bak 's/SUBDIRS = src scripts tests/SUBDIRS = src scripts/' Makefile.am || return 1
40     _log ./autogen.sh                           || return 1
41     _log ./configure --prefix=/usr              || return 1
42     _log make                                   || return 1
43     _log make DESTDIR="$startdir/pkg/" install  || return 1