1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
4 pkgname=(libnma-common libnma libnma-gtk4)
7 pkgdesc="NetworkManager GUI client library"
8 url="https://gitlab.gnome.org/GNOME/libnma"
22 mobile-broadband-provider-info
25 _commit=3e324b69d0d74c8693fb58b9ee66efe0bad6cb34 # tags/1.10.6^0
27 "git+https://gitlab.gnome.org/GNOME/libnma.git#commit=$_commit"
33 git describe --tags | sed 's/-dev/dev/;s/[^-]*-g/r&/;s/-/+/g'
45 arch-meson libnma build "${meson_options[@]}"
46 meson compile -C build
50 meson test -C build --print-errorlogs
54 local p="$1" f d; shift
56 d="$srcdir/$p/${f#$pkgdir/}"
57 mkdir -p "$(dirname "$d")"
59 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
63 package_libnma-common() {
64 pkgdesc+=" (common files)"
70 mobile-broadband-provider-info
73 meson install -C build --destdir "$pkgdir"
77 _pick gtk3 usr/lib/libnma.so*
78 _pick gtk3 usr/lib/pkgconfig/libnma.pc
79 _pick gtk3 usr/lib/girepository-1.0/NMA-*
80 _pick gtk3 usr/share/gir-1.0/NMA-*
81 _pick gtk3 usr/share/vala/vapi/libnma.*
83 _pick gtk4 usr/lib/libnma-gtk4.so*
84 _pick gtk4 usr/lib/pkgconfig/libnma-gtk4.pc
85 _pick gtk4 usr/lib/girepository-1.0/NMA4-*
86 _pick gtk4 usr/share/gir-1.0/NMA4-*
87 _pick gtk4 usr/share/vala/vapi/libnma-gtk4.*
89 # Moved to network-manager-applet 1.30.0
90 # https://bugs.archlinux.org/task/76489
91 rm usr/share/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml
96 depends=(libnma-common="$pkgver-$pkgrel" gtk3)
102 package_libnma-gtk4() {
104 depends=(libnma-common="$pkgver-$pkgrel" gtk4)
105 provides=(libnma-gtk4.so)
110 # vim:set sw=2 sts=-1 et: