blob: b5aa45e1a5394f7297f0fa162e53ebfcb6da02fc (
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
# Maintainer: raihan2000 <raihan1999ahamed@gmail.com>
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Michael Kanis <mkanis_at_gmx_dot_de>
pkgname=mutter-mobile
pkgdesc="A window manager for GNOME"
pkgver=45.rc.r88.g0f08f5a
pkgrel=1
_arches=specific
arch=(any)
license=(GPL)
url=https://gitlab.gnome.org/GNOME/mutter
depends=(
colord
dconf
gnome-desktop-4
gnome-settings-daemon
graphene
gsettings-desktop-schemas
iio-sensor-proxy
lcms2
libcanberra
libei
libgudev
libinput
libsm
libsysprof-capture
libxkbcommon-x11
libxkbfile
pipewire
startup-notification
xorg-xwayland
)
makedepends=(
egl-wayland
gi-docgen
git
gobject-introspection
gtk3
meson
sysprof
wayland-protocols
xorg-server
xorg-server-xvfb
)
checkdepends=(
gnome-session
python-dbusmock
wireplumber
zenity
)
options=(!debug)
_commit=0f08f5aba4c9b5ac34b2d5711182d50b719d838e # mobile-shell
source=("git+https://gitlab.gnome.org/verdre/mobile-mutter.git#commit=$_commit")
sha256sums=(SKIP)
pkgver() {
cd mobile-mutter
_hash=$(git describe --always --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')
_target=$(git log --grep="Bump version to 45.rc" --pretty=format:"%h")
_count=$(git rev-list "$_target"..HEAD --count)
echo "45.rc.r$_count.g$_hash"
}
prepare() {
cd mobile-mutter
}
build() {
local meson_options=(
-D docs=true
-D egl_device=true
-D installed_tests=false
-D wayland_eglstream=true
)
CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
LDFLAGS+=" -Wl,-Bsymbolic-functions"
arch-meson mobile-mutter build "${meson_options[@]}"
meson compile -C build
}
_check() (
export XDG_RUNTIME_DIR="$PWD/rdir" GSETTINGS_SCHEMA_DIR="$PWD/build/data"
mkdir -p -m 700 "$XDG_RUNTIME_DIR"
glib-compile-schemas "GSETTINGS_SCHEMA_DIR"
export NO_AT_BRIDGE=1 GTK_A11Y=none
export MUTTER_DEBUG_DUMMY_MODE_SPECS="800x600@10.0"
xvfb-run -s '-nolisten local +iglx -noreset' \
mutter/src/tests/meta-dbus-runner.py --launch=pipewire --launch=wireplumber \
meson test -C build --print-errorlogs -t 5 --setup plain
)
_pick() {
local p="$1" f d; shift
for f; do
d="$srcdir/$p/${f#$pkgdir/}"
mkdir -p "$(dirname "$d")"
mv "$f" "$d"
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
done
}
package_mutter-mobile() {
provides=(libmutter-13.so mutter=$pkgver)
conflicts=(mutter)
meson install -C build --destdir "$pkgdir"
_pick docs "$pkgdir"/usr/share/mutter-*/doc
}
|