summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1f1f90f0be58d8ec6145400406d207674e152372 (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
# Maintainer: WackyIdeas <wackyideas@disroot.org>

pkgname=('aeroshell-kwin-components-x11-git')
pkgver=6.7.4_61.rba5b59a
pkgrel=1
pkgdesc='X11 KWin effects for AeroShell-based desktops'
arch=(x86_64)
url="https://github.com/aeroshell-desktop/aeroshell-kwin-components"
license=('AGPL-3.0-or-later')
depends=(gcc-libs
         glibc
         kcmutils
         kdecoration
         ki18n
         qt6-base
         kcoreaddons
         kwindowsystem
         kconfig
         libepoxy
         kwin-x11
         aeroshell-kwin-components)
makedepends=(git
             extra-cmake-modules
             kdoctools
             plasma-wayland-protocols
             wayland-protocols)
options=('!debug')
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')
conflicts=(aeroshell-kwin-components-x11)
provides=(aeroshell-kwin-components-x11)

pkgver() {
  cd "$srcdir/${pkgname%}"
  echo "$(grep 'set(PROJECT_VERSION ' CMakeLists.txt | cut -d '"' -f 2)_$(git rev-list --count HEAD).r$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/${pkgname%}"
  cmake -B build -DKWIN_BUILD_WAYLAND=OFF -DKWIN_INSTALL_MISC=OFF -DBUILD_TESTING=OFF .
  cmake --build build
}

package() {
  cd "$srcdir/${pkgname%}"
  DESTDIR="$pkgdir" cmake --install build
}