aports/community/libwmime/APKBUILD
2025-03-27 13:20:03 +01:00

53 lines
1.3 KiB
Text

# Maintainer: Noel Kuntze <noel.kuntze@thermi.consulting>
pkgname=libwmime
pkgver=1.0.0
pkgrel=1
pkgdesc="Library for working with RFC 5322, MIME messages and IMAP/POP/SMTP"
url="https://grommunio.com/"
arch="all"
license="GPL-3.0-only"
# cmake config file isn't suitable for explicitely setting the TLS lib when it finds gnutls
makedepends="
!gnutls-dev
cmake
cppunit-dev
doxygen
graphviz
gtk+3.0-dev
libgsasl-dev
icu-dev
openssl-dev
samurai
"
checkdepends="icu-data-full"
subpackages="$pkgname-dbg $pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/grommunio/wmime/archive/refs/tags/wmime-$pkgver.tar.gz"
options="!check" # test suite fails
builddir="$srcdir/wmime-wmime-$pkgver"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B . -G Ninja \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DVMIME_BUILD_TESTS=ON \
-DVMIME_TLS_SUPPORT_LIB=openssl \
$CMAKE_CROSSOPTS .
cmake --build .
}
check() {
LANG=C.UTF-8 build/bin/run-tests
}
package() {
DESTDIR="$pkgdir" cmake --install .
}
sha512sums="
92b9642a54b931b0135fc56c24df263d3e39256cb48e34c3bd5988b6f2b18ed3e738415f4fc20500c214efe0f0e55e28211ce1960ae14de2595fb842a2c83e3e libwmime-1.0.0.tar.gz
"