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