updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / zap-svn / PKGBUILD
blobefade0c2a543c39eaf9d0570e4291e007dd932cc
1 pkgname=zap-svn
2 pkgver=5
3 pkgrel=1
4 pkgdesc="wireless performance test tool"                                                                                        
5 arch=('i686' 'x86_64')
6 url="http://code.google.com/p/zapwireless"
7 license=('GPL')
8 depends=()
9 makedepends=()
10 optdepends=()
11 conflicts=()
12 provides=()
14 _svntrunk="http://zapwireless.googlecode.com/svn/trunk/"
15 _svnmod="zap"
18 build() {
19 msg "Downloading from ${_svntrunk} ..."
20   cd ${srcdir}
21   if [ -d ${_svnmod}/.svn ]; then
22     (cd ${_svnmod} && svn up -r ${pkgver})
23   else
24     svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
25   fi
26 msg2 "SVN checkout done or server timeout"
28 msg "Creating temporary build directory..."
29   rm -Rf ${_svnmod}-build
30   cp -r ${_svnmod} ${_svnmod}-build
31   cd ${_svnmod}-build
33 msg "Building and installing..."  
34   make
35   mkdir -p ${pkgdir}/usr/bin
36   make DESTDIR=${pkgdir} install
38 msg "Removing build directory..."
39   cd ${srcdir}
40   rm -Rf ${_svnmod}-build