summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: edc2f348be8b0aaeeae77d3c4345736f5dce1c7e (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
# Maintainer: Raihan Ahamed (raihan2000) <raihan1999ahamed@gmail.com>
# 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-mobile
pkgname=(
    gnome-shell-mobile
    gnome-shell-mobile-docs
)
pkgdesc="Next generation desktop shell"
pkgver=46.r0.g958c555
pkgrel=1
epoch=1
arch=(
    any
)
license=(GPL-3.0-or-later)
url="https://gitlab.gnome.org/verdre/gnome-shell-mobile"
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-mobile
    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-mobile
    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
    sassc
)
_commit=958c55550b539d03cf6eb990b47bbbf9f9ec11b5 # tags^46-mobile.1
source=(
    "git+https://gitlab.gnome.org/verdre/gnome-shell-mobile.git#commit=$_commit"
    "git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git#commit=5f9768a2eac29c1ed56f1fbb449a77a3523683b6"
)
sha256sums=(
    68394e7007110af9dcd070c6813ceea6176f063f44d4ee7cddf0ab4350eb330b
    587319b45ff7d989635aed0c3bd9ef834d6e53ae46788cb6ba083d42d7e63855
)

pkgver() {
    cd $pkgbase
    git describe --long --tags --abbrev=7 "$_commit" | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g; s/.mobile.0//'
}

prepare() {
    # Inject gvc
    ln -s libgnome-volume-control gvc

    cd $pkgbase
}

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 $pkgbase build "${meson_options[@]}"
    meson compile -C build
}

package_gnome-shell-mobile() {
    conflicts=(gnome-shell)
    provides=(gnome-shell=1:$pkgver)
    depends+=(libmutter-14.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-mobile-docs() {
    conflicts=(gnome-shell-docs)
    provides=(gnome-shell-docs=1:$pkgver)
    pkgdesc+=" (API documentation)"
    depends=()

    mv doc/* "$pkgdir"
}

# vim:set sw=2 sts=-1 et: