summaryrefslogtreecommitdiff
path: root/community/hula/PKGBUILD
blob: b87bc33c253e4cdba461eaf8229c2fc6e2bc385a (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
# $Id: PKGBUILD 14533 2010-04-04 21:12:01Z spupykin $
# Maintainer: William Rea <sillywilly@gmail.com>
# Contributor: Benjamin Andresen <benny@klapmuetz.org>
# Contributor: eliott <eliott@cactuswax.net>

pkgname=hula
pkgver=r2661
pkgrel=3
pkgdesc="A calendar and mail server"
arch=('i686' 'x86_64' 'mips64el')
url="http://developer.novell.com/wiki/index.php/Hula"
options=('!libtool')
depends=('popt' 'libldap' 'mono' 'perl')
install=$pkgname.install
license=('GPL')
source=(http://archlinux-stuff.googlecode.com/files/hula-$pkgver.tar.gz \
        hula-script \
	build-fix.patch)
md5sums=('4a50509873ea6bfdeb8daf7540d15d85'
         '6cad58336400ee5d157a1ee4ae150bfd'
         '004c478d9ea9b781b84f67c68f7d89d2')

build() {
  export MONO_SHARED_DIR=$startdir/src/.wabi
  mkdir -p $MONO_SHARED_DIR

  cd $startdir/src/$pkgname

  sed -i '/CONNECTION_TIMEOUT/s/$/ \n#define VERBOSE_SPAMASSASSIN/' src/agents/antispam/antispam.h
  patch -p1 <$srcdir/build-fix.patch

  unset LDFLAGS

  ./autogen.sh --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install || return 1

  install -D -m755 ../../hula-script $startdir/pkg/etc/rc.d/hula
  rm -r  $MONO_SHARED_DIR
}