app=cyrus-sasl
version=2.1.27
build=1sml
homepage="https://www.cyrusimap.org/sasl/"
download="https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-2.1.27/cyrus-sasl-2.1.27.tar.gz"
desc="API to provide authentication and authorization"
requires="db"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --sbindir=/bin

  ( cd include ; make makemd5 )

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
3111b30c6fd34f16dee2ff9499b09c9d32be2258f5c16ef52d99feff4ba01177929e0ee301d5e06c97ac42f25d72f054c7adebf048156e827659b6a4ba0da1bc  cyrus-sasl-2.1.27.tar.lz
"
