updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / zap / PKGBUILD
blob3da7f4e869897bf42d12462099a343c62a9e9d4f
1 pkgname=zap
2 pkgver=2
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