summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c5d96d528f247b7d7fbfa30bad0431a2a5f7e48 (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
# Maintainer: Leon Möller <jkhsjdhjs at totally dot rip>
# Contributor: Martin Dørum <martid0311@gmail.com>
_gitname=swaylock-effects
pkgname="$_gitname-git"
pkgver=r470.496059a
pkgrel=1
pkgdesc="A fancier screen locker for Wayland."
arch=('i686' 'x86_64' 'aarch64')
url="https://github.com/jirutka/$_gitname"
license=('MIT')
depends=('libxkbcommon' 'cairo' 'gdk-pixbuf2' 'pam' 'wayland')
makedepends=('git' 'meson' 'ninja' 'scdoc' 'wayland-protocols')
provides=('swaylock' 'swaylock-effects')
conflicts=('swaylock')
backup=('etc/pam.d/swaylock')
source=("git+$url.git")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/$_gitname"
	echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/$_gitname"
	meson build --prefix=/usr
	ninja -C build
}

package() {
	cd "$srcdir/$_gitname"
	DESTDIR="$pkgdir" ninja -C build install
}