summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-07-18 22:23:15 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-07-18 22:23:15 +0000
commitab5f8d6bc3dd354ac6a9d164757d40c9d1e3ae00 (patch)
tree606c5e0232f61f7f44d2830ef52da2652ddcf0bd /user
parent557638ce5ef07e9ee5c558d4ecc9ce70b86684fa (diff)
downloadpackages-ab5f8d6bc3dd354ac6a9d164757d40c9d1e3ae00.tar.gz
packages-ab5f8d6bc3dd354ac6a9d164757d40c9d1e3ae00.tar.bz2
packages-ab5f8d6bc3dd354ac6a9d164757d40c9d1e3ae00.tar.xz
packages-ab5f8d6bc3dd354ac6a9d164757d40c9d1e3ae00.zip
user/ksmtp: New package
Diffstat (limited to 'user')
-rw-r--r--user/ksmtp/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/user/ksmtp/APKBUILD b/user/ksmtp/APKBUILD
new file mode 100644
index 000000000..3ca2dcbc2
--- /dev/null
+++ b/user/ksmtp/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=ksmtp
+pkgver=20.04.3
+pkgrel=0
+pkgdesc="SMTP library for KDE"
+url="https://kde.org/"
+arch="all"
+license="LGPL-2.1+"
+depends=""
+makedepends="qt5-qtbase-dev cmake extra-cmake-modules kauth-dev kcodecs-dev
+ kcoreaddons-dev ki18n-dev kio-dev kjobwidgets-dev kservice-dev
+ solid-dev cyrus-sasl-dev"
+subpackages="$pkgname-dev $pkgname-lang"
+source="https://download.kde.org/stable/release-service/$pkgver/src/ksmtp-$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="c9794ca8dd93e25c79dd22fab38f71a421da1612658830ffe87cc8e751db9624a3d1924edd52d6fdaa97044e4d1accef5b6807f9461f857bedccc00f4d54f109 ksmtp-20.04.3.tar.xz"