pkgname=cage-vi _pkgname=${pkgname%%-*} pkgver=0.1.4+54+gbd5b20e _pkgver=${pkgver%%+*} pkgrel=1 pkgdesc='A Wayland kiosk, with virtual input patch applied' arch=('x86_64') url="https://www.hjdskes.nl/projects/${_pkgname}/" license=('MIT') depends=('glibc' 'wayland' 'wlroots') makedepends=('meson' 'pixman' 'scdoc' 'wayland-protocols' 'xorg-xwayland') optdepends=( 'polkit: System privilege control. Required if not using seatd service' 'xorg-xwayland: X11 support' ) provides=("${_pkgname}") conflicts=("${_pkgname}") source=( "https://github.com/Hjdskes/${_pkgname}/releases/download/v${_pkgver}/${_pkgname}-${_pkgver}.tar.gz" 'bd5b20e.patch' ) sha256sums=('dfe27fb0c7d43db72d6c82f01e2736580a0791a23ba69d7b56285d08af98ad90' 'b3608b082c8859433158377ec875ee17ca72f10d61d8827eb5b1c2e01771c0ce') #pkgver() { # cd "${srcdir}/${_pkgname}-${_pkgver}" # git describe --long --tags | sed 's/^v//;s/-/+/g' #} prepare() { cd "${srcdir}/${_pkgname}-${_pkgver}" patch -Np1 -i '../bd5b20e.patch' meson --buildtype=release -Dxwayland=true --prefix /usr "$srcdir/build" } build() { cd "${srcdir}/${_pkgname}-${_pkgver}" ninja -C "$srcdir/build" } package() { cd "${srcdir}/${_pkgname}-${_pkgver}" DESTDIR="$pkgdir/" ninja -C "$srcdir/build" install }