1SUMMARY="KDE SMTP libraries" 2DESCRIPTION="Job-based library to send email through an SMTP server." 3HOMEPAGE="https://api.kde.org/kdepim/ksmtp/html/index.html" 4COPYRIGHT="2010-2024 KDE Organisation" 5LICENSE="BSD (3-clause) 6 CC0 v1.0 7 GNU LGPL v2 8 GNU LGPL v2.1" 9REVISION="1" 10SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/ksmtp-$portVersion.tar.xz" 11CHECKSUM_SHA256="dd0698955b1ec0455246df69d2ff1a12643119702a60fab24294c6cac2ac1bc5" 12 13ARCHITECTURES="all !x86_gcc2" 14SECONDARY_ARCHITECTURES="x86" 15 16libVersion="5.24.5" 17libVersionCompat="$libVersion compat >= ${libVersion%%.*}" 18 19PROVIDES=" 20 ksmtp$secondaryArchSuffix = $portVersion 21 lib:libKPim5SMTP$secondaryArchSuffix = $libVersionCompat 22 " 23REQUIRES=" 24 haiku$secondaryArchSuffix 25 lib:libKF5Codecs$secondaryArchSuffix 26 lib:libKF5ConfigCore$secondaryArchSuffix 27 lib:libKF5CoreAddons$secondaryArchSuffix 28 lib:libKF5I18n$secondaryArchSuffix 29 lib:libKF5KIOCore$secondaryArchSuffix 30 lib:libKF5Service$secondaryArchSuffix 31 lib:libKF5WidgetsAddons$secondaryArchSuffix 32 lib:libQt5Concurrent$secondaryArchSuffix 33 lib:libQt5Core$secondaryArchSuffix 34 lib:libQt5DBus$secondaryArchSuffix 35 lib:libQt5Network$secondaryArchSuffix 36 lib:libsasl2$secondaryArchSuffix 37 " 38 39PROVIDES_devel=" 40 ksmtp${secondaryArchSuffix}_devel = $portVersion 41 devel:libKPim5SMTP$secondaryArchSuffix = $libVersionCompat 42 " 43REQUIRES_devel=" 44 ksmtp$secondaryArchSuffix == $portVersion base 45 " 46 47BUILD_REQUIRES=" 48 haiku${secondaryArchSuffix}_devel 49 extra_cmake_modules$secondaryArchSuffix >= 5.115 50 devel:libKF5Auth$secondaryArchSuffix 51 devel:libKF5Bookmarks$secondaryArchSuffix 52 devel:libKF5Codecs$secondaryArchSuffix 53 devel:libKF5Completion$secondaryArchSuffix 54 devel:libKF5ConfigCore$secondaryArchSuffix 55 devel:libKF5ConfigWidgets$secondaryArchSuffix 56 devel:libKF5CoreAddons$secondaryArchSuffix 57 devel:libKF5I18n$secondaryArchSuffix 58 devel:libKF5ItemViews$secondaryArchSuffix 59 devel:libKF5JobWidgets$secondaryArchSuffix 60 devel:libKF5KIOCore$secondaryArchSuffix 61 devel:libKF5Service$secondaryArchSuffix 62 devel:libKF5Solid$secondaryArchSuffix 63 devel:libKF5SonnetCore$secondaryArchSuffix 64 devel:libKF5TextWidgets$secondaryArchSuffix 65 devel:libKF5WidgetsAddons$secondaryArchSuffix 66 devel:libKF5WindowSystem$secondaryArchSuffix 67 devel:libKF5XmlGui$secondaryArchSuffix 68 devel:libQt5Core$secondaryArchSuffix 69 devel:libQt5DBus$secondaryArchSuffix 70 devel:libQt5Gui$secondaryArchSuffix 71 devel:libQt5Network$secondaryArchSuffix 72 devel:libQt5Widgets$secondaryArchSuffix 73 devel:libQt5Xml$secondaryArchSuffix 74 devel:libsasl2$secondaryArchSuffix 75 " 76BUILD_PREREQUIRES=" 77 cmd:cmake 78 cmd:doxygen 79 cmd:g++$secondaryArchSuffix 80 cmd:make 81 cmd:msgmerge 82 cmd:pkg_config$secondaryArchSuffix 83 cmd:qdbuscpp2xml$secondaryArchSuffix >= 5 84 " 85 86PATCH() 87{ 88 sed -e '/platforms:/ a \ \ \ \ - name: Haiku' -i $sourceDir/metainfo.yaml 89} 90 91BUILD() 92{ 93 cmake -Bbuild -S. $cmakeDirArgs \ 94 -DCMAKE_BUILD_TYPE=Release \ 95 -DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \ 96 -DKDE_INSTALL_QMLDIR=$dataDir/Qt5/qml \ 97 -DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \ 98 -DECM_DIR=/system/data/cmake/Modules/ECM/cmake 99 make -C build $jobArgs 100} 101 102INSTALL() 103{ 104 make -C build install 105 106 prepareInstalledDevelLib \ 107 libKPim5SMTP 108 109 packageEntries devel \ 110 $libDir/cmake \ 111 $dataDir/Qt5/mkspecs \ 112 $developDir 113} 114 115TEST() 116{ 117 make check 118} 119