summaryrefslogtreecommitdiffstats
path: root/abs/core/libsasl/PKGBUILD
blob: d9b49b8fb8bc8cf1b65c4eb2eddab3ea89d8eca9 (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
# $Id: PKGBUILD 5269 2008-07-14 11:33:26Z pierre $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=libsasl
pkgver=2.1.22
pkgrel=7
pkgdesc="Cyrus Simple Authentication Service Layer (SASL) library"
arch=(i686 x86_64)
url="http://asg.web.cmu.edu/cyrus/download/"
license=('custom')
depends=('db>=4.7')
install=libsasl.install
source=(ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-${pkgver}.tar.gz
	cyrus-sasl-2.1.19-checkpw.c.patch db-4.7.patch)
md5sums=('45dde9d19193ae9dd388eb68b2027bc9'
         'e27ddff076342e7a3041c4759817d04b'
         '71a3b7454f4d7cc2966b347bdf03f2fc')
options=('!makeflags')

build() {
  cd ${srcdir}/cyrus-sasl-${pkgver}
  patch -Np0 -i ${srcdir}/cyrus-sasl-2.1.19-checkpw.c.patch || return 1
  patch -Np0 -i ${srcdir}/db-4.7.patch || return 1
  ./configure --prefix=/usr \
  	--sysconfdir=/etc \
  	--localstatedir=/var \
	--disable-anon \
	--disable-cram \
	--disable-digest \
	--disable-gssapi \
	--enable-login \
	--disable-otp \
	--enable-plain
  for dir in include lib sasldb plugins utils; do
    pushd ${dir} || return 1
    make || return 1
    make DESTDIR=${pkgdir} install || return 1
    popd
  done

  # install license
  install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING || return 1
}