blob: 8e725094ef3ae0d6825bf865561ffdcb1722e94c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
# Maintainer:
## useful links
# https://github.com/winft/como
# https://github.com/winft/theseus-ship
# https://github.com/winft/wrapland
# options
: ${_pkgver_como:=0.1.0}
unset _pkgtype
# basic info
_pkgname="theseus-ship"
pkgname="$_pkgname${_pkgtype:-}"
pkgver=6.0.0
pkgrel=1
pkgdesc="Wayland and X11 Compositor for the KDE Plasma desktop (formerly kwinft)"
url="https://github.com/winft/theseus-ship"
license=("LGPL-2.1-only")
arch=('x86_64' 'aarch64')
depends=(
## como
kauth
kcmutils
kconfigwidgets
kdecoration
kglobalaccel
kidletime
kpackage
kquickcharts
kservice
ksvg
libepoxy
libplasma
libqaccessibilityclient-qt6
qt6-5compat
qt6-declarative
qt6-tools
wlroots
## theseus-ship
kcrash
kdbusaddons
knewstuff
kscreenlocker
pixman
qt6-multimedia
# AUR
wrapland
)
makedepends=(
breeze
extra-cmake-modules
git
kdeclarative
kdoctools
knotifications
kxmlgui
microsoft-gsl
ninja
xorg-xwayland
)
optdepends=(
'qt6-virtualkeyboard: virtual keyboard support'
)
provides=(
"como=$_pkgver_como"
"kwin=$pkgver"
"kwinft=$pkgver"
"theseus-ship=$pkgver"
)
conflicts=(
"como"
"kwin"
"kwinft"
"theseus-ship"
)
install="$_pkgname.install"
_pkgsrc_como="como-$_pkgver_como"
_pkgsrc_theseus="theseus-ship-$pkgver"
_pkgext="tar.gz"
source=(
"$_pkgsrc_como.$_pkgext"::"https://github.com/winft/como/archive/refs/tags/v$_pkgver_como.$_pkgext"
"$_pkgsrc_theseus.$_pkgext"::"https://github.com/winft/theseus-ship/archive/refs/tags/v$pkgver.$_pkgext"
)
sha256sums=(
'49d9b8b8b8197f4443f8eae71db8adecf51da73c221a4712d0d8cc46b9fdc09f'
'ffd8cf6c0b48cda918a74df372c55f42e00c9151420b4148b5e9f67ae05a05d5'
)
build() {
local _cmake_options
# como
_cmake_options=(
-B build_como
-S "$_pkgsrc_como"
-G Ninja
-DCMAKE_BUILD_TYPE=None
-DCMAKE_INSTALL_PREFIX='/usr'
-DCMAKE_INSTALL_LIBEXECDIR="lib"
-DBUILD_TESTING=OFF
-Wno-dev
)
cmake "${_cmake_options[@]}"
cmake --build build_como
DESTDIR="$srcdir/fakeinstall" cmake --install build_como
# theseus-ship
_cmake_options=(
-B build_theseus
-S "$_pkgsrc_theseus"
-G Ninja
-DCMAKE_BUILD_TYPE=None
-DCMAKE_INSTALL_PREFIX='/usr'
-DCMAKE_INSTALL_LIBEXECDIR="lib"
-Dcomo_DIR="$srcdir/fakeinstall/usr/lib/cmake/como"
-DKWinDBusInterface_DIR="$srcdir/fakeinstall/usr/lib/cmake/KWinDBusInterface"
-DBUILD_TESTING=OFF
-Wno-dev
)
cmake "${_cmake_options[@]}"
cmake --build build_theseus
DESTDIR="$srcdir/fakeinstall" cmake --install build_theseus
}
package() {
cp --reflink=auto -r "$srcdir/fakeinstall"/* "$pkgdir/"
chmod -R u=rwX,go=rX "$pkgdir/"
}
|