# Depends on: curl expat cyrus-sasl gnutls

description="A portable middleware for email access"
url="http://www.etpan.org/"
packager="tnut <tnut@nutyx.org>"
contributors="Pierre B"

PKGMK_KEEP_SOURCES="no"
name=libetpan
version=1.9.2

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  \
    --with-openssl=no \
    --with-gnutls=yes \
    --disable-db
  make
  make DESTDIR=$PKG install

  # Obsolet lib
  rm $PKG/usr/lib/$name.la
}
