summaryrefslogtreecommitdiff
path: root/community/jabberd14/PKGBUILD
blob: da0ec5a1127bed97b08ce8cf0f7f94aabd6db5c1 (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
# $Id: PKGBUILD 54463 2011-08-18 15:07:21Z bluewind $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=jabberd14
pkgver=1.6.1.1
pkgrel=10
pkgdesc="old (1.4) jabber server branch"
arch=(i686 x86_64 'mips64el')
url="http://jabberd.org/"
license=("GPL")
depends=(pth libidn expat popt gnutls)
optdepends=(libmysqlclient)
conflicts=(jabberd)
backup=(etc/jabberd/jabber.xml)
options=('!libtool')
source=(http://download.jabberd.org/jabberd14/jabberd14-$pkgver.tar.gz
	build-fix.patch
	jabberd)
md5sums=('597c7ee14518ba22b1cee883b4737d87'
         'ad795626f26c01700a23515e0e75d654'
         '5869169394d70977858320648075c7a6')

build() {
  cd $srcdir/jabberd14-$pkgver
  export LDFLAGS="$LDFLAGS -lgcrypt"
  [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr --enable-ssl --enable-legacy --sysconfdir=/etc/jabberd --localstatedir=/var
  echo "#undef HAVE_GNUTLS_EXTRA" >>config.h
  [ $NOEXTRACT -eq 1 ] || patch -Rp1 <$srcdir/build-fix.patch
  make -j1
  make DESTDIR=$pkgdir install
  install -D -m 0755 $srcdir/jabberd $pkgdir/etc/rc.d/jabberd
  rm -rf $pkgdir/var/run
}