phosh-arch/gnome-control-center-mobile/PKGBUILD

153 lines
3.5 KiB
Bash
Raw Permalink Normal View History

2024-08-13 17:17:11 +02:00
# Maintainer: Danct12 <danct12@disroot.org>
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Jan de Groot <jgc@archlinux.org>
_pkgname=gnome-control-center
pkgname=gnome-control-center-mobile
pkgver=46.0.1
pkgrel=1
pkgdesc="GNOME's main interface to configure various aspects of the desktop - Purism fork"
url="https://gitlab.gnome.org/GNOME/gnome-control-center"
license=(GPL-2.0-or-later)
arch=(x86_64 armv7h aarch64)
depends=(
accountsservice
bolt
cairo
colord-gtk4
cups-pk-helper
dconf
fontconfig
gcc-libs
gcr-4
gdk-pixbuf2
glib2
glibc
gnome-bluetooth-3.0
gnome-color-manager
gnome-desktop-4
gnome-online-accounts
gnome-settings-daemon
gnutls
graphene
gsettings-desktop-schemas
gsound
gtk4
hicolor-icon-theme
json-glib
krb5
libadwaita
libcolord
libcups
libepoxy
libgoa
libgtop
libgudev
libibus
libmm-glib
libnm
libnma-gtk4
libpulse
libpwquality
libsecret
libsoup3
libwacom
libx11
libxi
libxml2
modemmanager
pango
polkit
smbclient
sound-theme-freedesktop
tecla
udisks2
upower
)
makedepends=(
docbook-xsl
git
meson
python
python-packaging
)
checkdepends=(
python-dbusmock
python-gobject
xorg-server-xvfb
)
optdepends=(
'fwupd: device security panel'
'gnome-remote-desktop: screen sharing'
# Cannot be a depend because when gnome-shell checkdepends on
# gnome-control-center depends on gnome-shell depends on libmutter-12.so, it
# makes building gnome-shell against libmutter-13.so impossible
'gnome-shell: multitasking panel'
'gnome-user-share: WebDAV file sharing'
'networkmanager: network settings'
'openssh: remote login'
'power-profiles-daemon: power profiles'
'rygel: media sharing'
'system-config-printer: printer settings'
)
provides=(gnome-control-center)
conflicts=(gnome-control-center)
source=(
"git+https://gitlab.gnome.org/GNOME/gnome-control-center.git?signed#tag=$pkgver"
"git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git"
# purism
'0001-avatar-chooser-Adapt-to-work-on-librem5.patch'
'Add-patches-to-check-if-phone.patch'
# mobian
'0004-power-add-more-suspend-timing-options.patch'
'resize-connection-editor.patch'
)
sha256sums=('5ee40c5b39544aba9ff36156bc5e5e3258e065e92518a1c150a2936bafe3db0a'
'SKIP'
'c18c1b9fdab8e8b7aad8519a58996267377965dbe3d8d8dc9a9129fe80da01ef'
'09e36b0aa2c40d6b6f5be11fd9617223d5b142ff8b50db6fce0eeebc63007327'
'6f1906d58edfa87658c6396091601cab44f40046aced3a56bf5b4e46c0510fb6'
'c006215f8e8c6ef523708089f246815f845d82d94e5f442460d4a4aafdfb617b')
validpgpkeys=(
9B60FE7947F0A3C58136817F2C2A218742E016BE # Felipe Borges (GNOME) <felipeborges@gnome.org>
)
prepare() {
cd ${_pkgname}
git submodule init subprojects/gvc
git submodule set-url subprojects/gvc "$srcdir/libgnome-volume-control"
git -c protocol.file.allow=always submodule update
local src
for src in "${source[@]}"; do
src="${src%%::*}"
src="${src##*/}"
[[ $src = *.patch ]] || continue
echo "Applying patch $src..."
patch -Np1 < "../$src"
done
}
build() {
local meson_options=(
-D documentation=true
)
arch-meson ${_pkgname} build "${meson_options[@]}"
meson compile -C build
}
check() {
GTK_A11Y=none dbus-run-session xvfb-run -s '-nolisten local +iglx -noreset' \
meson test -C build --print-errorlogs
}
package() {
meson install -C build --destdir "$pkgdir"
echo "X-Purism-FormFactor=Workstation;Mobile;" >> "$pkgdir/usr/share/applications/gnome-control-center.desktop"
}