contrib/kwindowsystem/Pkgfile

31 lines
996 B
Plaintext
Raw Normal View History

2020-12-05 13:57:13 +01:00
# Description: KDE Framework - kwindowsystem
2022-09-11 10:35:19 +02:00
# URL: https://api.kde.org/frameworks/kwindowsystem/html/index.html
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: extra-cmake-modules qt5
2020-12-05 13:57:13 +01:00
name=kwindowsystem
2023-08-18 15:17:55 +02:00
version=5.109.0
2020-12-05 13:57:13 +01:00
release=1
2023-04-09 20:41:38 +02:00
source=(https://invent.kde.org/frameworks/kwindowsystem/-/archive/v$version/kwindowsystem-v$version.tar.bz2)
2020-12-05 13:57:13 +01:00
build() {
if [[ ! -e /usr/include/xkbcommon/xkbcommon-x11.h ]]; then
printf '\e[31m%s\e[m\n' "libxkbcommon is not built with x11 support but needs to be!"
printf '\e[33m%s\e[m\n' "Install xkeyboard-config and rebuild libxkbcommon and qt5 in that order to build $name"
exit 1
fi
2023-04-09 20:41:38 +02:00
rm -r $name-v$version/poqm/*
2020-12-05 13:57:13 +01:00
2023-04-09 20:41:38 +02:00
cmake -S $name-v$version -B build -G Ninja \
2022-09-11 10:35:19 +02:00
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-Wno-dev
2020-12-05 13:57:13 +01:00
2022-09-11 10:35:19 +02:00
cmake --build build
DESTDIR=$PKG cmake --install build
2020-12-05 13:57:13 +01:00
}