blob: a3a7f2c4ca7b8c66b247900decbe39184059562c (
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
|
# Maintainer: Michael Wyraz <archlinux@michael.wyraz.de>
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Arjan Timmerman <arjan@archlinux.org>
# Contributor: Wael Nasreddine <gandalf@siemens-mobiles.org>
# Contributor: Tor Krill <tor@krill.nu>
# Contributor: Will Rea <sillywilly@gmail.com>
pkgbase=network-manager-applet-nolibappindicator
pkgname=(network-manager-applet-nolibappindicator)
pkgver=1.32.0
pkgrel=3
pkgdesc="Applet for managing network connections"
url="https://gitlab.gnome.org/GNOME/network-manager-applet"
arch=(x86_64)
license=(GPL LGPL)
depends=(
libmm-glib
libnma
libsecret
networkmanager
)
makedepends=(
git
gobject-introspection
gtk-doc
libgudev
meson
)
options=(debug)
_commit=06645751f898ab49181e52beb4f34fb83efc6c5e # tags/1.32.0^0
source=("git+https://gitlab.gnome.org/GNOME/network-manager-applet.git#commit=$_commit")
sha256sums=('SKIP')
conflicts=(network-manager-applet)
provides=(network-manager-applet)
pkgver() {
cd network-manager-applet
git describe --tags | sed 's/-dev/dev/;s/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd network-manager-applet
# Drop libgudev makedep
git cherry-pick -n d536d046ccd97b3eba76d2425f571bc8b7ada383
# Fix crash when importing VPN profiles
# https://bugs.archlinux.org/task/78360
git cherry-pick -n 01281fae6b601598cd2006bc8f2d5be98810228d
}
build() {
local meson_options=(
-D selinux=false
-D appindicator=no
)
arch-meson network-manager-applet build "${meson_options[@]}"
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
_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_network-manager-applet-nolibappindicator() {
depends+=(nm-connection-editor)
meson install -C build --destdir "$pkgdir"
cd "$pkgdir"
_pick nmce usr/bin/nm-connection-editor
_pick nmce usr/share/applications/nm-connection-editor.desktop
_pick nmce usr/share/icons/hicolor/*/*/nm-device-wwan{,-symbolic}.*
_pick nmce usr/share/locale
_pick nmce usr/share/man/man1/nm-connection-editor.1
_pick nmce usr/share/metainfo
}
# vim:set sw=2 sts=-1 et:
|