summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: af396c5cf91a4f7fcec114b95d317faae55e86cf (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
_pkgname=waycratelock
pkgname=waycratelock-git
pkgver=r41.bf28449
pkgrel=2
pkgdesc="waycratelock, lock for ext-session-lock"
url="https://github.com/waycrate/waycratelock"
arch=('x86_64' 'aarch64')
license=('GPL')
makedepends=('git' 'ninja' 'cmake' 'wayland-protocols' 'session-lock-qt')
depends=('qt6-wayland' 'qt6-base' 'pam')
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)"
}