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
9 pkgname=(network-manager-applet nm-connection-editor)
12 pkgdesc="Applet for managing network connections"
13 url="https://gitlab.gnome.org/GNOME/network-manager-applet"
16 makedepends=(libsecret libnotify libmm-glib gobject-introspection git gtk-doc meson libnma
17 libappindicator-gtk3 libgudev)
19 _commit=c6738f174cebd39d39494e26d42ff9a59cca9f1b # tags/1.28.0^0
20 source=("git+https://gitlab.gnome.org/GNOME/network-manager-applet.git#commit=$_commit")
25 git describe --tags | sed 's/-dev/dev/;s/[^-]*-g/r&/;s/-/+/g'
33 arch-meson $pkgbase build -D selinux=false
34 meson compile -C build
38 meson test -C build --print-errorlogs
42 local p="$1" f d; shift
44 d="$srcdir/$p/${f#$pkgdir/}"
45 mkdir -p "$(dirname "$d")"
47 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
51 package_network-manager-applet() {
52 depends=(nm-connection-editor libmm-glib libnotify libsecret networkmanager
55 meson install -C build --destdir "$pkgdir"
58 _pick nmce usr/bin/nm-connection-editor
59 _pick nmce usr/share/applications/nm-connection-editor.desktop
60 _pick nmce usr/share/icons/hicolor/*/*/nm-device-wwan{,-symbolic}.*
61 _pick nmce usr/share/locale
62 _pick nmce usr/share/man/man1/nm-connection-editor.1
63 _pick nmce usr/share/metainfo
66 package_nm-connection-editor() {
67 pkgdesc="NetworkManager GUI connection editor and widgets"
69 conflicts=('libnm-gtk<1.8.18-1')
70 replaces=('libnm-gtk<1.8.18-1')