# Maintainer: gilbus pkgname=cage-git _pkgname=cage pkgver=0.1.3.r1.gefaf76e pkgrel=1 epoch=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://www.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}" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | cut -c2-48 } 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 }