blob: cb98ddedcfc593aaec353222db99c476e0c94c14 (
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
|
# Maintainer:
# Contributor: Zren <zrenfire@gmail.com>
_pkgname="material-kwin-decoration"
pkgname="${_pkgname}-git"
pkgver=r215.38718de
pkgrel=2
pkgdesc="Material-ish window decoration for KWin, with LIM (Locally Integrated Menu) support"
url="https://github.com/guiodic/material-decoration"
license=('GPL-2.0-or-later')
arch=('x86_64')
depends=(
kcmutils
'kdecoration>=6.3.0'
'kwin>=6.3.0'
)
makedepends=(
cmake
extra-cmake-modules
git
kwin
)
optdepends=(
'appmenu-gtk-module: gtk app support'
)
provides=("$_pkgname")
conflicts=("$_pkgname")
_pkgsrc="$_pkgname"
source=("$_pkgsrc"::"git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgsrc"
printf "r%s.%s" \
"$(git rev-list --count HEAD)" \
"$(git rev-parse --short=7 HEAD)"
}
build() {
local _cmake_options=(
-B build
-S "$_pkgsrc"
-DQT_MAJOR_VERSION=6
-DQT_VERSION_MAJOR=6
-Wno-dev
)
cmake "${_cmake_options[@]}"
cmake --build build
}
package() {
DESTDIR="${pkgdir:?}" cmake --install build
}
|