# Maintainer: PktSurf <smlinux@pktsurf.in>
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"

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

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

build() {
  ./configure \
    --prefix="" \
    --disable-static \
    --disable-mono \
    --disable-introspection

  make
  make install DESTDIR=$pkg 

  cp COPYING $pkgdocs/

  mkfinalpkg
}

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