summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3498af981148ec3b649d9c9e22b0529b2421f2b4 (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
_pkgname=greetd-waycratedm
pkgname=greetd-waycratedm-git
pkgver=r46.f29c3d7
pkgrel=2
pkgdesc="qml desktop manager for greetd"
url="https://github.com/Decodetalkers/greetd-qmlgreet"
arch=('x86_64' 'aarch64')
license=('GPL')
provides=("$_pkgname")
conflicts=("$_pkgname")
makedepends=('git' 'ninja' 'cmake' 'wayland-protocols')
depends=('qt6-wayland' 'qt6-base' 'session-lock-qt' 'greetd')
source=("${_pkgname}::git+${url}.git")
sha256sums=('SKIP')

build() {
  cd "${_pkgname}"
  cmake -GNinja \
        -DCMAKE_INSTALL_SYSCONFDIR=/etc \
        -DCMAKE_INSTALL_PREFIX=/usr .
  ninja
}

package() {
  cd "${_pkgname}"
  DESTDIR="$pkgdir" ninja install
}

pkgver() {
  cd "${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}