File tree Expand file tree Collapse file tree
archlinuxcn/kwin-effects-sliding-notifications-russh-git Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ cmake_minimum_required (VERSION 4.0 )
2+ project (kwin-effects-sliding-notifications)
3+
4+ set (KF_MIN_VERSION "6.0.0" )
5+ set (QT_MIN_VERSION "6.6.0" )
6+
7+ set (CMAKE_CXX_STANDARD 20)
8+ set (CMAKE_CXX_STANDARD_REQUIRED ON )
9+ set (CMAKE_CXX_EXTENSIONS OFF )
10+
11+ find_package (ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE )
12+ set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} )
13+
14+ include (FeatureSummary )
15+ include (KDEInstallDirs )
16+ include (KDECMakeSettings )
17+ include (KDECompilerSettings NO_POLICY_SCOPE )
18+
19+ find_package (Qt6 ${QT_MIN_VERSION} REQUIRED COMPONENTS
20+ Core
21+ Gui
22+ )
23+
24+ find_package (KF6 ${KF_MIN_VERSION} REQUIRED COMPONENTS
25+ Config
26+ ConfigWidgets
27+ CoreAddons
28+ WindowSystem
29+ )
30+
31+ find_package (epoxy REQUIRED )
32+ find_package (XCB REQUIRED COMPONENTS
33+ XCB
34+ )
35+
36+ find_package (KWin 6.0.0 REQUIRED COMPONENTS
37+ kwin
38+ )
39+
40+ kcoreaddons_add_plugin (slidingnotifications INSTALL_NAMESPACE "kwin/effects/plugins" )
41+
42+ target_sources (slidingnotifications PRIVATE
43+ SlidingEffect.cpp
44+ )
45+
46+ target_link_libraries (slidingnotifications
47+ Qt6::Core
48+ Qt6::Gui
49+
50+ KF6::ConfigCore
51+ KF6::ConfigGui
52+ KF6::CoreAddons
53+ KF6::WindowSystem
54+
55+ KWin::kwin
56+ )
57+
58+ feature_summary (WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES )
Original file line number Diff line number Diff line change 1+ # Maintainer: Coelacanthus <coelacanthus@archlinuxcn.org>
2+ # Contributor: Vlad Zahorodnii <vladzzag@gmail.com>
3+
4+ pkgname=kwin-effects-sliding-notifications-russh-git
5+ pkgver=r22.7a486fd
6+ pkgrel=1
7+ pkgdesc=" Sliding animation for notification windows"
8+ arch=(' x86_64' )
9+ url=" https://github.com/RussH/kwin-sliding-notifications"
10+ license=(' GPL3' )
11+ depends=(' kwin>=6.0' )
12+ makedepends=(
13+ extra-cmake-modules
14+ git
15+ )
16+ conflicts=(kwin-effects-sliding-notifications)
17+ source=(
18+ ${pkgname} ::git+https://github.com/RussH/kwin-sliding-notifications
19+ CMakeLists.txt
20+ )
21+ sha256sums=(' SKIP'
22+ ' 42bb8e10a743a93037fa25cc4a63bc536b01521f50d8b35fe2fbcae794554c95' )
23+
24+ pkgver () {
25+ cd " $pkgname "
26+ ( set -o pipefail
27+ git describe --long --abbrev=7 2> /dev/null | sed ' s/\([^-]*-g\)/r\1/;s/-/./g' ||
28+ printf " r%s.%s" " $( git rev-list --count HEAD) " " $( git rev-parse --short=7 HEAD) "
29+ )
30+ }
31+
32+ prepare () {
33+ mkdir -p build
34+ cd $srcdir /$pkgname
35+ cp -v ../CMakeLists.txt CMakeLists.txt
36+ }
37+
38+ build () {
39+ cd build
40+ cmake ../$pkgname \
41+ -DCMAKE_INSTALL_PREFIX=/usr \
42+ -DCMAKE_INSTALL_LIBDIR=lib
43+ make
44+ }
45+
46+ package () {
47+ cd build
48+ make DESTDIR=" $pkgdir " install
49+ }
Original file line number Diff line number Diff line change 1+ maintainers :
2+ - github : CoelacanthusHex
3+ email : coelacanthus@archlinuxcn.org
4+ build_prefix : extra-x86_64
5+ pre_build : vcs_update
6+ post_build : git_pkgbuild_commit
7+
8+ update_on :
9+ - source : github
10+ github : RussH/kwin-sliding-notifications
11+ branch : main
12+ - source : alpm
13+ alpm : kwin
You can’t perform that action at this time.
0 commit comments