summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 312cc4f387e63cf0038cd0e6ec1a7501c3b46142 (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
36
37
38
39
40
# Maintainer: Philip Jones <philj56@gmail.com>
pkgname=greetd-mini-wl-greeter-git
pkgver=r30.c28c524
pkgrel=1
pkgdesc="Extremely minimal Wayland greeter for greetd."
arch=("x86_64")
url="https://github.com/philj56/greetd-mini-wl-greeter"
license=("MIT")
groups=()
depends=("cairo" "glib2" "json-c" "libepoxy" "libpng" "libxkbcommon" "pango" "wayland")
makedepends=("meson" "git" "scdoc" "wayland-protocols")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=("${pkgname}::git+${url}")
noextract=()
sha512sums=("SKIP")

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

prepare() {
	cd "${pkgname}"
        meson --prefix /usr -Dbuildtype=release build
}

build() {
	cd "${pkgname}"
        ninja -C build
}

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