mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
116 lines
2.5 KiB
Plaintext
116 lines
2.5 KiB
Plaintext
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=kwin
|
|
pkgver=5.27.5
|
|
pkgrel=1
|
|
pkgdesc="An easy to use, but flexible, composited Window Manager"
|
|
# armhf blocked by qt5-qtdeclarative
|
|
arch="all !armhf"
|
|
url="https://kde.org/plasma-desktop/"
|
|
license="GPL-2.0-or-later AND (GPL-2.0-only OR GPL-3.0-only) AND LGPL-2.1-only"
|
|
depends="
|
|
kirigami2
|
|
qt5-qtmultimedia
|
|
qt5-qtwayland
|
|
xwayland
|
|
"
|
|
depends_dev="
|
|
breeze-dev
|
|
eudev-dev
|
|
fontconfig-dev
|
|
kactivities-dev
|
|
kcmutils-dev
|
|
kcompletion-dev
|
|
kconfig-dev
|
|
kconfigwidgets-dev
|
|
kcoreaddons-dev
|
|
kcrash-dev
|
|
kdeclarative-dev
|
|
kdecoration-dev
|
|
kglobalaccel-dev
|
|
ki18n-dev
|
|
kiconthemes-dev
|
|
kidletime-dev
|
|
kinit-dev
|
|
kio-dev
|
|
knewstuff-dev
|
|
knotifications-dev
|
|
kpackage-dev
|
|
krunner-dev
|
|
kscreenlocker-dev
|
|
kservice-dev
|
|
ktextwidgets-dev
|
|
kwayland-dev
|
|
kwidgetsaddons-dev
|
|
kwindowsystem-dev
|
|
kxmlgui-dev
|
|
lcms2-dev
|
|
libdrm-dev
|
|
libepoxy-dev
|
|
libinput-dev
|
|
libqaccessibilityclient-dev
|
|
libxcvt-dev
|
|
libxi-dev
|
|
libxkbcommon-dev
|
|
mesa-dev
|
|
mesa-gbm
|
|
pipewire-dev
|
|
plasma-framework-dev
|
|
qt5-qtbase-dev
|
|
qt5-qtdeclarative-dev
|
|
qt5-qtscript-dev
|
|
qt5-qtsensors-dev
|
|
qt5-qtx11extras-dev
|
|
wayland-dev
|
|
xcb-util-cursor-dev
|
|
xcb-util-image-dev
|
|
xcb-util-wm-dev
|
|
"
|
|
makedepends="$depends_dev
|
|
extra-cmake-modules
|
|
kdoctools-dev
|
|
libcap-utils
|
|
qt5-qttools-dev
|
|
samurai
|
|
"
|
|
checkdepends="xvfb-run"
|
|
|
|
case "$pkgver" in
|
|
*.90*) _rel=unstable;;
|
|
*) _rel=stable;;
|
|
esac
|
|
source="https://download.kde.org/$_rel/plasma/$pkgver/kwin-$pkgver.tar.xz"
|
|
subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-lang"
|
|
options="!check" # Broken
|
|
|
|
build() {
|
|
# significantly reduce debug symbol size
|
|
# use None here to not make cmake pass bare -g (-g2)
|
|
CFLAGS="$CFLAGS -O2 -g1" CXXFLAGS="$CXXFLAGS -O2 -g1" \
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
cd build
|
|
CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
|
# We don't ship systemd
|
|
rm -r "$pkgdir"/usr/lib/systemd
|
|
|
|
# kwin_wayland has CAP_SYS_NICE set. Because of this, libdbus doesn't trust the
|
|
# environment and ignores it, causing for example keyboard shortcuts to not work
|
|
# Remove CAP_SYS_NICE from kwin_wayland to make them work again
|
|
setcap -r "$pkgdir"/usr/bin/kwin_wayland
|
|
}
|
|
sha512sums="
|
|
777bf193ad8e4440ee9866f6b725e191460c5ff4b33e3e517184568fda3aee4936be5274daa33996ae654465b477b108fee83f91e33f0db8f622de7629340de8 kwin-5.27.5.tar.xz
|
|
"
|