upgpkg: ocaml-ctypes 0.20.2-1
[arch-packages.git] / network-manager-applet / trunk / PKGBUILD
blobeac6cc3861774d2c75e05ddea017ef0f2388a2b3
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=(
10   network-manager-applet
11   nm-connection-editor
13 pkgver=1.32.0
14 pkgrel=2
15 pkgdesc="Applet for managing network connections"
16 url="https://gitlab.gnome.org/GNOME/network-manager-applet"
17 arch=(x86_64)
18 license=(
19   GPL
20   LGPL
22 depends=(
23   libappindicator-gtk3
24   libmm-glib
25   libnma
26   libsecret
27   networkmanager
29 makedepends=(
30   git
31   gobject-introspection
32   gtk-doc
33   meson
35 _commit=06645751f898ab49181e52beb4f34fb83efc6c5e  # tags/1.32.0^0
36 source=("git+https://gitlab.gnome.org/GNOME/network-manager-applet.git#commit=$_commit")
37 b2sums=('SKIP')
39 pkgver() {
40   cd $pkgbase
41   git describe --tags | sed 's/-dev/dev/;s/[^-]*-g/r&/;s/-/+/g'
44 prepare() {
45   cd $pkgbase
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
55 build() {
56   local meson_options=(
57     -D selinux=false
58   )
60   arch-meson $pkgbase build "${meson_options[@]}"
61   meson compile -C build
64 check() {
65   meson test -C build --print-errorlogs
68 _pick() {
69   local p="$1" f d; shift
70   for f; do
71     d="$srcdir/$p/${f#$pkgdir/}"
72     mkdir -p "$(dirname "$d")"
73     mv "$f" "$d"
74     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
75   done
78 package_network-manager-applet() {
79   depends+=(nm-connection-editor)
81   meson install -C build --destdir "$pkgdir"
83   cd "$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"
95   depends=(libnma)
96   conflicts=('libnm-gtk<1.8.18-1')
97   replaces=('libnm-gtk<1.8.18-1')
99   mv nmce/* "$pkgdir"
102 # vim:set sw=2 sts=-1 et: