blob: 14ce831011ba05c1e71c011d8fedafe3d229da3e (
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
|
# Maintainer:
# Contributor: Zren <zrenfire@gmail.com>
_pkgname="material-kwin-decoration"
pkgname="${_pkgname}-git"
pkgver=r215.38718de
pkgrel=1
pkgdesc="Material-ish window decoration theme for KWin, with LIM support"
url="https://github.com/guiodic/material-decoration"
license=('GPL-2.0-or-later')
arch=('x86_64')
depends=(
kcmutils
kdecoration
)
makedepends=(
cmake
extra-cmake-modules
git
)
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() {
install -Dm644 "build/src/materialdecoration.so" -t "$pkgdir/usr/lib/qt6/plugins/org.kde.kdecoration2/"
}
|