1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
3 # Contributor: Arjan Timmerman <arjan@archlinux.org>
4 # Contributor: Wael Nasreddine <gandalf@siemens-mobiles.org>
5 # Contributor: Tor Krill <tor@krill.nu>
6 # Contributor: Will Rea <sillywilly@gmail.com>
8 pkgbase=network-manager-applet
10 network-manager-applet
15 pkgdesc="Applet for managing network connections"
16 url="https://gitlab.gnome.org/GNOME/network-manager-applet"
35 _commit=06645751f898ab49181e52beb4f34fb83efc6c5e # tags/1.32.0^0
36 source=("git+https://gitlab.gnome.org/GNOME/network-manager-applet.git#commit=$_commit")
41 git describe --tags | sed 's/-dev/dev/;s/[^-]*-g/r&/;s/-/+/g'
47 # Drop libgudev makedep
48 git cherry-pick -n d536d046ccd97b3eba76d2425f571bc8b7ada383
50 # Fix crash when importing VPN profiles
51 # https://bugs.archlinux.org/task/78360
52 git cherry-pick -n 01281fae6b601598cd2006bc8f2d5be98810228d
60 arch-meson $pkgbase build "${meson_options[@]}"
61 meson compile -C build
65 meson test -C build --print-errorlogs
69 local p="$1" f d; shift
71 d="$srcdir/$p/${f#$pkgdir/}"
72 mkdir -p "$(dirname "$d")"
74 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
78 package_network-manager-applet() {
79 depends+=(nm-connection-editor)
81 meson install -C build --destdir "$pkgdir"
85 _pick nmce usr/bin/nm-connection-editor
86 _pick nmce usr/share/applications/nm-connection-editor.desktop
87 _pick nmce usr/share/icons/hicolor/*/*/nm-device-wwan{,-symbolic}.*
88 _pick nmce usr/share/locale
89 _pick nmce usr/share/man/man1/nm-connection-editor.1
90 _pick nmce usr/share/metainfo
93 package_nm-connection-editor() {
94 pkgdesc="NetworkManager GUI connection editor and widgets"
96 conflicts=('libnm-gtk<1.8.18-1')
97 replaces=('libnm-gtk<1.8.18-1')
102 # vim:set sw=2 sts=-1 et: