blob: e0fe3d63a6829513466eef7552a5f7875078828b (
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
#Based on https://gitlab.archlinux.org/archlinux/packaging/packages/gnome-shell/-/raw/main/PKGBUILD
# Maintainer: envolution
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Fabian Bornschein <fabiscafe@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Flamelab <panosfilip@gmail.com
pkgbase=gnome-shell-git
pkgname=(
gnome-shell-git
gnome-shell-docs-git
)
pkgver=47.2+r19240+g3bc2ab6ba
pkgrel=1
pkgdesc="Next generation desktop shell - git latest"
url="https://gitlab.gnome.org/GNOME/gnome-shell"
arch=(x86_64)
license=(GPL-3.0-or-later)
depends=(
accountsservice
at-spi2-core
bash
cairo
dconf
gcc-libs
gcr-4
gdk-pixbuf2
gjs
glib2
glibc
gnome-autoar
gnome-desktop-4
gnome-session
gnome-settings-daemon
graphene
gsettings-desktop-schemas
gtk4
hicolor-icon-theme
json-glib
libadwaita
libcanberra-pulse
libgdm
libgirepository
libglvnd
libgweather-4
libibus
libical
libnm
libnma-gtk4
libpipewire
libpulse
libsecret
libsoup3
libx11
libxfixes
mutter-git
pango
polkit
systemd-libs
unzip
upower
webkitgtk-6.0
)
makedepends=(
asciidoc
bash-completion
evolution-data-server
gi-docgen
git
glib2-devel
gnome-keybindings
gobject-introspection
meson
python-docutils
sassc
libmutter-16.so
)
source=(
# GNOME Shell tags use SSH signatures which makepkg doesnt understand
"git+https://gitlab.gnome.org/GNOME/gnome-shell.git"
"git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git#commit=5f9768a2eac29c1ed56f1fbb449a77a3523683b6"
)
b2sums=('SKIP'
'e31ae379039dfc345e8032f7b9803a59ded075fc52457ba1553276d3031e7025d9304a7f2167a01be2d54c5e121bae00a2824a9c5ccbf926865d0b24520bb053')
pkgver() {
cd gnome-shell
_version=$(git tag --sort=-v:refname --list | grep '^[0-9.]*$' | head -n1)
_commits=$(git rev-list --count HEAD)
_short_commit_hash=$(git rev-parse --short=9 HEAD)
echo "${_version}+r${_commits}+g${_short_commit_hash}"
}
prepare() {
# Inject gvc
ln -s libgnome-volume-control gvc
cd gnome-shell
}
build() {
local meson_options=(
-D gtk_doc=true
-D tests=false
)
CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
LDFLAGS+=" -Wl,-Bsymbolic-functions"
# Inject gvc
export MESON_PACKAGE_CACHE_DIR="$srcdir"
arch-meson gnome-shell build "${meson_options[@]}"
meson compile -C build
}
package_gnome-shell-git() {
provides=(gnome-shell)
conflicts=(gnome-shell)
depends+=(libmutter-16.so)
optdepends=(
'evolution-data-server: Evolution calendar integration'
'gnome-bluetooth-3.0: Bluetooth support'
'gnome-control-center: System settings'
'gnome-disk-utility: Mount with keyfiles'
'gst-plugin-pipewire: Screen recording'
'gst-plugins-good: Screen recording'
'power-profiles-daemon: Power profile switching'
'python-gobject: gnome-shell-test-tool performance tester'
'python-simplejson: gnome-shell-test-tool performance tester'
'switcheroo-control: Multi-GPU support'
)
groups=(gnome)
meson install -C build --destdir "$pkgdir"
mkdir -p doc/usr/share
mv {"$pkgdir",doc}/usr/share/doc
}
package_gnome-shell-docs-git() {
provides=(gnome-shell-docs)
conflicts=(gnome-shell-docs)
pkgdesc+=" (API documentation)"
depends=()
mv doc/* "$pkgdir"
}
# vim: ts=2 sw=2 et:
|