summaryrefslogtreecommitdiff
path: root/user/kimap
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-07-20 00:11:07 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-07-20 00:11:07 +0000
commite73352470813bb392bb328a5cb2affaebbc52e84 (patch)
tree1731303e6ba2a034507ce1c9f262dd2d422a583f /user/kimap
parentc24d76e973433cc679959e93f1941f989376061b (diff)
downloadpackages-e73352470813bb392bb328a5cb2affaebbc52e84.tar.gz
packages-e73352470813bb392bb328a5cb2affaebbc52e84.tar.bz2
packages-e73352470813bb392bb328a5cb2affaebbc52e84.tar.xz
packages-e73352470813bb392bb328a5cb2affaebbc52e84.zip
user/kimap: New package
Diffstat (limited to 'user/kimap')
-rw-r--r--user/kimap/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/user/kimap/APKBUILD b/user/kimap/APKBUILD
new file mode 100644
index 000000000..aba216edf
--- /dev/null
+++ b/user/kimap/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=kimap
+pkgver=20.04.3
+pkgrel=0
+pkgdesc="IMAP library for KDE"
+url="https://kde.org/"
+arch="all"
+license="LGPL-2.1+"
+depends=""
+makedepends="qt5-qtbase-dev cmake extra-cmake-modules cyrus-sasl-dev kauth-dev
+ kcodecs-dev kcoreaddons-dev ki18n-dev kio-dev kjobwidgets-dev kmime-dev
+ kservice-dev solid-dev"
+subpackages="$pkgname-dev $pkgname-lang"
+source="https://download.kde.org/stable/release-service/$pkgver/src/kimap-$pkgver.tar.xz"
+
+build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ ${CMAKE_CROSSOPTS} \
+ .
+ make
+}
+
+check() {
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="d9bfc2390270eb46b903e54f88e84fbc8dbae0cbf71fe69ad826d77d64978c1512b7c9de617ab64cb449d5c0d6fa386ab60f3da634bdcbce01b924a36a7c10e5 kimap-20.04.3.tar.xz"