APP=gmime
VERSION=2.6.23
BUILD=1sml
HOMEPAGE='https://gitlab.gnome.org/GNOME/gmime'
DOWNLOAD='https://github.com/jstedfast/gmime/archive/refs/tags/2.6.23.tar.gz'
DESC="Library to parse and create messages in MIME format"
REQUIRES="netbsd-curses libffi glib util-linux pcre gpgme"

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

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

  ./configure \
    --prefix="" \
    --disable-static \
    --disable-mono

  make
  make install DESTDIR=$PKG 

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
688a9725c1d6913302211d1350406d45dbe9aca35e2bc58d297b213151c28c57c84f311f07e2386456e4537a3e6f941bc539942bf2798a9de0c0f591761cf4de  gmime-2.6.23.tar.lz
"
