1 # Contributor: nesl247 <nesl247@gmail.com>
6 pkgdesc="Library, bindings and command-line utilities to automatically detect \
7 and configure client proxy settings"
9 url="http://code.google.com/p/wpad"
11 depends=('xulrunner' 'python>=2.4.0' 'nspr')
12 makedepends=('subversion' 'libtool' 'pkgconfig')
14 conflicts=('spidermonkey')
17 _svntrunk=http://wpad.googlecode.com/svn/trunk/
24 if [ -d $_svnmod/.svn ]; then
25 (cd $_svnmod && svn up)
27 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
30 msg "SVN checkout done or server timeout"
31 msg "Starting make..."
33 cp -r $_svnmod $_svnmod-build
36 sed -i -e 's|firefox-js|xulrunner-js|g' configure.ac
37 autoreconf -i || return 1
39 ./configure --prefix=/usr
40 make LDFLAGS+="-R /opt/mozilla/lib/xulrunner" || return 1
41 make DESTDIR=$startdir/pkg install || return 1
43 rm -rf $startdir/src/$_svnmod-build