# Description: A C/C++ MIME creation and parser library with support for S/MIME, PGP, and Unix mbox spools
# URL: https://github.com/jstedfast/gmime
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: glib gpgme libidn2 gtk-doc

name=gmime3
version=3.2.13
release=1
source=(https://github.com/jstedfast/gmime/archive/$version/$name-$version.tar.gz)

build() {
  cd gmime-$version
  NOCONFIGURE=1 ./autogen.sh
  ./configure --prefix=/usr \
    --program-prefix=gmime3 \
    --enable-smime \
    --disable-gtk-doc \
    --disable-static
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
  make DESTDIR=$PKG install
}
