aboutsummaryrefslogtreecommitdiffstats
path: root/community/kmime/APKBUILD
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2020-03-03 10:59:29 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-03-03 08:50:06 -0300
commite71afe26ee0cd057e8216b8b26d84a74913e4a90 (patch)
treeb55946c2931a8dd329ff0f70acc0b11763632137 /community/kmime/APKBUILD
parent1326ba7897b72eb674d260e00c65df4c4af1fe75 (diff)
downloadaports-e71afe26ee0cd057e8216b8b26d84a74913e4a90.tar.gz
aports-e71afe26ee0cd057e8216b8b26d84a74913e4a90.tar.bz2
aports-e71afe26ee0cd057e8216b8b26d84a74913e4a90.tar.xz
community/kmime: move from testing
Diffstat (limited to 'community/kmime/APKBUILD')
-rw-r--r--community/kmime/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/community/kmime/APKBUILD b/community/kmime/APKBUILD
new file mode 100644
index 0000000000..aa0166662a
--- /dev/null
+++ b/community/kmime/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=kmime
+pkgver=19.12.2
+pkgrel=1
+pkgdesc="Library for handling mail messages and newsgroup articles"
+arch="all !armhf"
+url="https://community.kde.org/KDE_PIM"
+license="LGPL-2.0-or-later"
+depends_dev="qt5-qtbase-dev ki18n-dev kcodecs-dev"
+makedepends="$depends_dev extra-cmake-modules"
+source="https://download.kde.org/stable/release-service/$pkgver/src/kmime-$pkgver.tar.xz"
+subpackages="$pkgname-dev $pkgname-lang"
+
+build() {
+ cmake -B "$builddir"/build \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib
+ make -C build
+}
+
+check() {
+ cd "$builddir"/build
+
+ # kmime-headertest and kmime-messagetest are broken
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "kmime-(header|message)test"
+}
+
+package() {
+ DESTDIR="$pkgdir" make -C build install
+}
+sha512sums="5df4b5e81de9b4b7026e41faca5efaba3c484ddf18ac4016e67ea9464ae7bc3e2307a184396c9411abacacdf91f4493b1509e45fd322625d935a6f0788f5896d kmime-19.12.2.tar.xz"