summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7fd430e356f7c9f5b43057ce63af6a84003438f7 (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
# Maintainer: gilbus <aur(AT)tinkershell.eu>
pkgname=cage-git
_pkgname=cage
pkgver=r83.f0eb115
pkgrel=1
license=("MIT")
pkgdesc="A Wayland kiosk"
makedepends=("meson" "git" "wayland-protocols")
depends=(
	"wlroots-git" "wayland" "libxkbcommon" "xorg-server-xwayland"
)
arch=("x86_64")
url="https://hjdskes.nl/projects/cage"
source=("${pkgname%-*}::git+https://github.com/Hjdskes/cage.git")
sha1sums=("SKIP")
#provides=("cage")
#conflicts=("cage")
options=(debug !strip)

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

prepare() {
	cd "${srcdir}/${_pkgname}"
	meson --buildtype=release -Dxwayland=true --prefix /usr "$srcdir/build"
}

build() {
	cd "${srcdir}/${_pkgname}"
	ninja -C "$srcdir/build"
}

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