1 # Maintainer: Kin <kurisui at gmail dot com>
5 pkgdesc='An IRC proxy (bouncer) with modules & scripts support from SVN with Extras enabled'
7 url=http://en.znc.in/wiki/index.php/ZNC
9 depends=(gcc-libs perl openssl c-ares tcl)
10 makedepends=(perl openssl gcc pkgconfig tcl grep)
11 provides=('znc=0.089')
14 _svntrunk="https://znc.svn.sourceforge.net/svnroot/znc/trunk"
16 _cpu=$(cat /proc/cpuinfo | grep processor | wc -l)
21 cd ${srcdir} || return 1
23 if [ -d ${_svnmod}/.svn ]; then
24 (cd ${_svnmod} && svn up)
26 svn co -r ${pkgver} ${_svntrunk} ${_svnmod}
31 ./configure --prefix=/usr --enable-extra --enable-tcl || return 1
32 make -j${_cpu}|| return 1
33 make install DESTDIR=$pkgdir
35 rm -rf $(find . -name .svn) || return 1