blob: d1313b71cc7b94ee047feabac0eab8262ccdd14e (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Maintainer: Stipe Kotarac <stipe@kotarac.net>
pkgname=jay-git
pkgver=r1070.388a4d1c
pkgrel=1
pkgdesc='A Wayland Compositor'
arch=('x86_64')
license=(GPL-3.0-only)
url='https://github.com/mahkoh/jay'
provides=(
jay
wayland-compositor
)
conflicts=(
jay
)
depends=(
cairo
libinput
libudev.so
libvulkan.so
libxkbcommon.so
mesa
pango
)
optdepends=(
'xorg-xwayland: X11 support'
'xdg-desktop-portal: portal support'
)
makedepends=(
git
'rust>=1.84.0'
shaderc
)
options=(!lto)
source=('jay::git+https://github.com/mahkoh/jay.git#branch=master')
sha512sums=('SKIP')
pkgver() {
cd jay/
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd jay/
cargo build --release --locked
}
check() {
cd jay/
cargo test --release --locked
}
package() {
cd jay/
install -D -m755 -s target/release/jay $pkgdir/usr/bin/jay
install -D -m644 etc/jay.portal $pkgdir/usr/share/xdg-desktop-portal/portals/jay.portal
install -D -m644 etc/jay-portals.conf $pkgdir/usr/share/xdg-desktop-portal/jay-portals.conf
mkdir -p $pkgdir/usr/share/zsh/site-functions/
target/release/jay generate-completion zsh > $pkgdir/usr/share/zsh/site-functions/_jay
mkdir -p $pkgdir/usr/share/bash-completion/completions/
target/release/jay generate-completion bash > $pkgdir/usr/share/bash-completion/completions/jay
mkdir -p $pkgdir/usr/share/fish/vendor_completions.d/
target/release/jay generate-completion fish > $pkgdir/usr/share/fish/vendor_completions.d/jay.fish
}
|