summaryrefslogtreecommitdiff
path: root/community/znc/PKGBUILD
blob: 9099a8864e99ee8e853b1477a6dd6bb46f85f3ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# $Id: PKGBUILD 79573 2012-11-07 18:35:01Z seblu $
# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
# Contributor: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: mickael9 <mickael9 at gmail dot com>

pkgname=znc
pkgver=1.0
pkgrel=1
pkgdesc='An IRC bouncer with modules & scripts support'
url='http://en.znc.in/wiki/index.php/ZNC'
license=('GPL2')
arch=('i686' 'x86_64')
depends=('c-ares' 'libsasl')
makedepends=('swig' 'tcl' 'python' 'perl')
#makedepends=('tcl' 'python' 'perl')
optdepends=('tcl: modtcl module'
            'python: modpython module'
            'perl: modperl module'
            'cyrus-sasl: saslauth module')
source=("http://znc.in/releases/$pkgname-$pkgver.tar.gz")
#        "http://people.znc.in/~darthgandalf/znc/modperl/modperl-znc-0.207-472-g7a4aa74.tar.bz2"
#        "http://people.znc.in/~darthgandalf/znc/modpython/modpython-znc-0.207-472-g7a4aa74.tar.bz2")
md5sums=('23807ca830c27392cccb6774f542df6e')

build() {
  # disable with znc 1.0
  # swig 2.0.6 is bugged, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=672035
  # use an alternate ways of building znc explain here:
  # - http://wiki.znc.in/Modperl
  # - http://wiki.znc.in/Modpython
  #mv -v modperl/* $pkgname-$pkgver/modules/modperl
  #mv -v modpython/* $pkgname-$pkgver/modules/modpython
  cd $pkgname-$pkgver
  ./configure --prefix=/usr \
    --enable-sasl \
    --enable-python \
    --enable-perl \
    --enable-tcl \
    --disable-swig \
    --enable-extra
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et: