summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 77abaa98013f8e1d91ed507210789633a71ec166 (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
# Maintainer: Guido Iodice <guido.iodice@gmail.com>
# Contributor: Zren <zrenfire@gmail.com>

_pkgname="material-kwin-decoration"
pkgname="${_pkgname}-git"
pkgver=r836.c7cff8f
pkgrel=3
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=(kwin wayland)
makedepends=(
  cmake
  extra-cmake-modules
  git
  vulkan-headers
  'plasma-wayland-protocols>=1.15.0'
)
optdepends=(
  'plasma-x11-session: for X11 support'
  'appmenu-gtk-module: gtk app support (X11)'
  'appmenu-gtk-module-wayland: gtk app support (Wayland)'
  'kwin-minimize2tray-git: Minimize to tray on Close long press'
  'kwin-effects-better-blur-dx: strongly recommended on Wayland if you set Titlebar Opacity < 100%'
)

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"
    -Wno-dev
  )

  cmake "${_cmake_options[@]}"
  cmake --build build
}

package() {
  DESTDIR="${pkgdir:?}" cmake --install build
}