summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 61152cc4e193599aa27d79815830e056ae9ada8d (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-greeter-git
pkgver=r7.02eff1e
pkgrel=1
pkgdesc="Extremely minimal GTK 4 greeter for greetd."
arch=("x86_64")
url="https://github.com/philj56/greetd-mini-greeter"
license=("MIT")
groups=()
depends=("gtk4" "json-c")
makedepends=("meson" "git" "scdoc")
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 build
}

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

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