makedepends=(libgcrypt expat cyrus-sasl  )

description="A portable middleware for email access"
url="http://www.etpan.org/"

packager="Great-OS Team"
maintainer="rems"

PKGMK_KEEP_SOURCES="no"

name=libetpan
version=1.9.4

source=(https://github.com/dinhviethoa/$name/archive/$version.tar.gz)

build() {
  cd $name-$version
  libtoolize --force --copy
  aclocal -I m4
  autoheader
  autoconf
  automake --add-missing \
           --foreign     \
           --force --copy

  ./configure --prefix=/usr    \
              --disable-static \
              --disable-db \
              --with-openssl=no \
              --with-gnutls=yes
  
  make
  make DESTDIR=$PKG install

# Obsolet libs
rm $PKG/usr/lib/libetpan.la
}
