2022-10-17 23:58:40 +02:00
|
|
|
pkgname=cage-vi
|
|
|
|
_pkgname=${pkgname%%-*}
|
2023-04-02 21:11:09 +02:00
|
|
|
pkgver=0.1.4+54+gbd5b20e
|
2022-10-17 23:58:40 +02:00
|
|
|
_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"
|
2023-04-02 21:11:09 +02:00
|
|
|
'bd5b20e.patch'
|
2022-10-17 23:58:40 +02:00
|
|
|
)
|
2023-04-02 21:11:09 +02:00
|
|
|
sha256sums=('dfe27fb0c7d43db72d6c82f01e2736580a0791a23ba69d7b56285d08af98ad90'
|
|
|
|
'b3608b082c8859433158377ec875ee17ca72f10d61d8827eb5b1c2e01771c0ce')
|
|
|
|
|
|
|
|
#pkgver() {
|
|
|
|
# cd "${srcdir}/${_pkgname}-${_pkgver}"
|
|
|
|
# git describe --long --tags | sed 's/^v//;s/-/+/g'
|
|
|
|
#}
|
|
|
|
|
2022-10-17 23:58:40 +02:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/${_pkgname}-${_pkgver}"
|
2023-04-02 21:11:09 +02:00
|
|
|
patch -Np1 -i '../bd5b20e.patch'
|
2022-10-17 23:58:40 +02:00
|
|
|
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
|
|
|
|
}
|