From 50ae9d784b92049a5360e43c3d71ab89d7355b0b Mon Sep 17 00:00:00 2001 From: J0WI <J0WI@users.noreply.github.com> Date: Tue, 15 Feb 2022 21:29:25 +0100 Subject: [PATCH] testing/libvmime: modernize --- testing/libvmime/APKBUILD | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/testing/libvmime/APKBUILD b/testing/libvmime/APKBUILD index f122653f09fe..468cfc0f7c58 100644 --- a/testing/libvmime/APKBUILD +++ b/testing/libvmime/APKBUILD @@ -1,14 +1,14 @@ # Maintainer: Noel Kuntze <noel.kuntze@thermi.consulting> pkgname=libvmime pkgver=0.9.2k4 -pkgrel=3 +pkgrel=4 pkgdesc="Library for working with RFC 5322, MIME messages and IMAP/POP/SMTP" arch="all" -url="http://www.vmime.org" +url="https://www.vmime.org/" license="GPL-3.0-only" # cmake config file isn't suitable for explicitely setting the TLS lib when it finds gnutls makedepends="libgsasl-dev openssl-dev cmake gtk+3.0-dev doxygen - cppunit-dev graphviz !gnutls-dev" + cppunit-dev graphviz !gnutls-dev samurai" subpackages="$pkgname-dbg $pkgname-dev" source="libvmime-$pkgver.tar.gz::https://github.com/Kopano-dev/vmime/archive/v$pkgver.tar.gz fix-icu-70-1.patch @@ -19,10 +19,11 @@ builddir="$srcdir/vmime-$pkgver" # can't build in other directory because cmake config is broken here. # library will not exist at package time. build() { - cmake -DCMAKE_BUILD_TYPE=None \ + cmake -B . -G Ninja \ + -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_INSTALL_PREFIX=/usr/ \ -DVMIME_BUILD_TESTS=ON \ - -DVMIME_TLS_SUPPORT_LIB=openssl -B . + -DVMIME_TLS_SUPPORT_LIB=openssl cmake --build . } @@ -31,8 +32,7 @@ check() { } package() { - #cmake --install . ="$pkgdir" - make DESTDIR="$pkgdir" install + DESTDIR="$pkgdir" cmake --install . mv "$pkgdir/usr/cmake" "$pkgdir/usr/lib/cmake" } -- GitLab