APP=libetpan
VERSION=1.9.4
BUILD=1sml
HOMEPAGE='https://www.etpan.org/'
DOWNLOAD='https://github.com/dinhvh/libetpan/archive/refs/tags/1.9.4.tar.gz'
DESC="middleware library providing various APIs to access mail"
REQUIRES="gcc-libs db expat curl"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --disable-static 

  make
  make install DESTDIR=$PKG

  cp COPYRIGHT $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
aa3d91ac305f9a9a80946714008702f9f11507265275702040b6c034122b30cd9c639e378ae135e6617302f6810f617126a0b74f3594308b10beeb182549ebe8  libetpan-1.9.4.tar.lz
"
