This commit is contained in:
joborun linux 2024-10-08 21:05:27 +03:00
parent b9c5766e30
commit 1a131b5ee6
3 changed files with 40 additions and 42 deletions

View file

@ -6,19 +6,17 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=cage
pkgver=0.1.5+r36+ge7d8780
_commit=e7d8780f46277af87881e0be91cb2092541bb1d5 # master # 2024-02-26
pkgrel=03
pkgver=0.2.0
#_commit=e7d8780f46277af87881e0be91cb2092541bb1d5 # master # 2024-02-26
pkgrel=01
pkgdesc="A kiosk compositor for Wayland"
url="https://www.hjdskes.nl/projects/cage/"
#depends=('glibc' 'wayland' 'wlroots')
#makedepends=(git libxkbcommon meson scdoc wayland-protocols xorg-xwayland)
makedepends=(git meson wlroots0.17 pixman seatd wayland-protocols scdoc xorg-xwayland)
makedepends=(git meson wlroots pixman seatd wayland-protocols scdoc xorg-xwayland)
provides=('wayland-compositor')
optdepends=('xorg-xwayland: X11 support')
source=(#"${pkgname}::git+https://github.com/Hjdskes/${pkgname}.git#tag=v${pkgver}?signed"
"git+https://github.com/cage-kiosk/cage.git#commit=$_commit"
)
#source=(#"${pkgname}::git+https://github.com/Hjdskes/${pkgname}.git#tag=v${pkgver}?signed"
source=("git+https://github.com/cage-kiosk/cage.git")
install=cage.install
pkgver() {
@ -26,13 +24,12 @@ pkgver() {
git describe --tags | sed 's/^v//;s/-/+r/;s/-/+/'
}
build() {
export PKG_CONFIG_PATH='/usr/lib/wlroots0.17/pkgconfig'
arch-meson "$pkgname" build \
-Dxwayland=enabled
# export PKG_CONFIG_PATH='/usr/lib/wlroots0.17/pkgconfig'
arch-meson "$pkgname" build
#\ # -Dxwayland=enabled
# Print config
meson configure build
# meson configure build
ninja -C build
}
@ -41,8 +38,10 @@ check() {
}
package() {
depends=('glibc' 'wayland' libwlroots.so=12 libxkbcommon.so)
# depends+=('libwlroots-0.18.so' libxkbcommon.so) ## tried to use the same as labwc-git but not ready yet
# depends=('glibc' 'wayland' libwlroots.so=12 libxkbcommon.so)
depends+=(wayland 'libwlroots-0.18.so' libxkbcommon.so) ## tried to use the same as labwc-git but not ready yet
optdepends=('xorg-xwayland: X11 support')
# DESTDIR="${pkgdir}" meson install -C build
DESTDIR="${pkgdir}" ninja -C build install
install -vDm 644 "$pkgname/README.md" -t "${pkgdir}/usr/share/doc/${pkgname}"
@ -58,7 +57,6 @@ license=(MIT)
validpgpkeys=(13B6A35E9FD677D02CD68DBE37C445296EBC43B1 # Jente Hidskes <dev@hjdskes.nl>
34FF9526CFEF0E97A340E2E40FDE7BE0E88F5E48) # Simon Ser <contact@emersion.fr>
sha512sums=('7244b52b8357c83704bccbe8c1183170526e14a4ec26630d6f4fe73c1e64783f42ce1f626653517b2b814abae1aad79c725ea17a5ff341e4c8323563b72a13c4')
sha256sums=(0ee3a6fedb378a98008f754c33b62157007d13cf44d4560253c3f4ad82e985a0) # cage
sha256sums=('SKIP')
## 8c4f2e27940f404654bf957bf5c6b3878ed384475381ba6a30727369f62f477d cage-0.1.5+r36+ge7d8780-03-x86_64.pkg.tar.lz
## c13507937b64b31ddf13aa1f973008dfa0ea84fa163963832358470be2876dd6 cage-0.2.0-01-x86_64.pkg.tar.lz

View file

@ -2,42 +2,42 @@
# Contributor: David Runge <dvzrv@archlinux.org>
pkgname=cage
pkgver=0.1.5+r36+ge7d8780
_commit=e7d8780f46277af87881e0be91cb2092541bb1d5 # master # 2024-02-26
pkgrel=2
pkgver=0.2.0
pkgrel=1
pkgdesc="A kiosk compositor for Wayland"
arch=(x86_64)
url="https://www.hjdskes.nl/projects/cage/"
license=(MIT)
depends=('glibc' 'wayland' 'wlroots0.17')
makedepends=(git libxkbcommon meson scdoc wayland-protocols xorg-server-xwayland)
depends=(
'glibc'
'wayland'
'wlroots'
)
makedepends=(
'git'
'libxkbcommon'
'meson'
'scdoc'
'wayland-protocols'
'xorg-server-xwayland'
)
provides=('wayland-compositor')
optdepends=(
'polkit: System privilege control. Required if not using seatd service'
'xorg-server-xwayland: X11 support'
)
source=(#"${pkgname}::git+https://github.com/Hjdskes/${pkgname}.git#tag=v${pkgver}?signed"
"git+https://github.com/cage-kiosk/cage.git#commit=$_commit"
)
# It's not uncommon to need to update to the latest commit so we use git-based
# fetching.
source=("git+https://github.com/cage-kiosk/cage.git#tag=v$pkgver?signed")
install=cage.install
sha512sums=('7244b52b8357c83704bccbe8c1183170526e14a4ec26630d6f4fe73c1e64783f42ce1f626653517b2b814abae1aad79c725ea17a5ff341e4c8323563b72a13c4')
sha512sums=('fbf43968560ee4d83ade87804aac9dbc8fe61f783909bad5a4403937d7f0070894373bc21fab9f1d1e425126a9b86c99c2acb5fee30f7cc9b23c40e453c9df21')
validpgpkeys=(
'13B6A35E9FD677D02CD68DBE37C445296EBC43B1' # Jente Hidskes <dev@hjdskes.nl>
'34FF9526CFEF0E97A340E2E40FDE7BE0E88F5E48' # Simon Ser <contact@emersion.fr>
)
pkgver() {
cd $pkgname
git describe --tags | sed 's/^v//;s/-/+r/;s/-/+/'
}
build() {
export PKG_CONFIG_PATH='/usr/lib/wlroots0.17/pkgconfig'
arch-meson "$pkgname" build \
-Dxwayland=enabled
# Print config
meson configure build
arch-meson "$pkgname" build
ninja -C build
}
@ -46,11 +46,9 @@ check() {
}
package() {
depends+=(libwlroots.so=12 libxkbcommon.so)
depends+=(libwlroots.so libxkbcommon.so)
# DESTDIR="${pkgdir}" meson install -C build
DESTDIR="${pkgdir}" ninja -C build install
install -vDm 644 "$pkgname/README.md" -t "${pkgdir}/usr/share/doc/${pkgname}"
install -vDm 644 "$pkgname/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
##

View file

@ -1,8 +1,10 @@
git
meson
wlroots0.17
wlroots
pixman
seatd
wayland-protocols
scdoc
xorg-xwayland