blob: 9d658155ddf1350f50d49dec7e67b61b05dbb7b6 (
plain) (
tree)
|
|
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kpimtextedit
pkgver=19.12.2
pkgrel=0
pkgdesc="Text editor for Personal Information Managers (PIMs)"
url="https://pim.kde.org/"
arch="all"
options="!check" # Test suite requires X11 running.
license="LGPL-2.1+ AND GPL-2.0+"
depends=""
depends_dev="qt5-qtbase-dev kwidgetsaddons-dev syntax-highlighting-dev
ktextwidgets-dev sonnet-dev"
makedepends="$depends_dev cmake extra-cmake-modules qt5-qttools-dev ki18n-dev
grantlee-dev kcodecs-dev kconfig-dev kconfigwidgets-dev kcoreaddons-dev
kdesignerplugin-dev kemoticons-dev kiconthemes-dev kio-dev kxmlgui-dev
qt5-qtspeech-dev"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.kde.org/stable/release-service/$pkgver/src/kpimtextedit-$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="a7a0e5312c86d117a3a1c2a2f9992f69a19419bded915a809abf3a9b365ed780bf4dfd94d17662a5f0d59d7163acd6ad032b71e0cceb9800a61764008eb9ea8d kpimtextedit-19.12.2.tar.xz"
|