summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7327a72f2a4e47dee7127d8371f11743ced0e784 (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
# Maintainer: zan <zan@420blaze.it>

pkgname=kwayland-server-git
_name=${pkgname%-git}
pkgver=v5.19.1.r65.g8351f51
pkgrel=1
pkgdesc='Wayland Server Components built on KDE Frameworks '
arch=(x86_64)
url='https://invent.kde.org/plasma/kwayland-server'
license=(LGPL)
depends=(qt5-base)
makedepends=(git extra-cmake-modules-git plasma-wayland-protocols wayland-protocols kwayland doxygen qt5-tools)
conflicts=(kwayland-server)
provides=(kwayland-server)
groups=(plasma)
source=("git+https://invent.kde.org/plasma/$_name.git")
md5sums=('SKIP')

pkgver() {
  cd $_name
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cmake -B build -S $_name
  cmake --build build
}

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