#### this file is sourced not run
PKGVER=5.106.0
PKGBUILD=1
PKGARCH=x86_64

# BLFS updated 08132018 (5.49.0); updated 20230610 (5.106.0)
TARBALL=kwindowsystem-$PKGVER.tar.xz
MD5SUM=a4982009669cedee946a5379fc1a4c30
SRC_URL=https://download.kde.org/stable/frameworks/5.106/$TARBALL
BUNDLE=

SLACKREQ='qt5-common extra-cmake-modules'
SLACKDESC="kwindowsystem-qt5: kwindowsystem-qt5 $PKGVER (KDE Windowing System library)
kwindowsystem-qt5:
kwindowsystem-qt5: KWindowSystem provides information about the windowing system and
kwindowsystem-qt5: allows interaction with the windowing system. It provides an high
kwindowsystem-qt5: level API which is windowing system independent and has platform
kwindowsystem-qt5: specific implementations. This API is inspired by X11 and thus
kwindowsystem-qt5: not all functionality is available on all windowing systems.
kwindowsystem-qt5:
kwindowsystem-qt5: Built for qt5.
kwindowsystem-qt5:
kwindowsystem-qt5:
"
PKG_NOSTRIP=yes
### default pkg_download
### prepare
### default pkg_package
### build
pkg_build() {
	export PATH="$PATH:/opt/qt5/bin"
	export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/qt5/lib64"
	export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/opt/qt5/lib64/pkgconfig"
	export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:/opt/qt5/include"
	export QT5_PATH="/opt/qt5/bin"
	export QT5_LD_LIBRARY_PATH="/opt/qt5/lib64"
	export QT5_PKG_CONFIG_PATH="/opt/qt5/lib64/pkgconfig"
	export QT5_CPLUS_INCLUDE_PATH="/opt/qt5/include"
	export QT_XKB_CONFIG_ROOT="/usr/share/X11/xkb"

	cd /tmp/kwindowsystem*
	CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_BUILD_TYPE=Release\
		-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
		-DBUILD_TESTING=OFF"
	pkg_build_cmake &&
	pkg_build_slackdesc

}

# vim:ft=sh:
