archrelease: copy trunk to extra-x86_64
[arch-packages.git] / network-manager-applet / trunk / PKGBUILD
blobed8cbf1e8788de94106b324a6c8be147410fdf54
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)
10 pkgver=1.28.0
11 pkgrel=1
12 pkgdesc="Applet for managing network connections"
13 url="https://gitlab.gnome.org/GNOME/network-manager-applet"
14 arch=(x86_64)
15 license=(GPL LGPL)
16 makedepends=(libsecret libnotify libmm-glib gobject-introspection git gtk-doc meson libnma
17              libappindicator-gtk3 libgudev)
18 options=(debug)
19 _commit=c6738f174cebd39d39494e26d42ff9a59cca9f1b  # tags/1.28.0^0
20 source=("git+https://gitlab.gnome.org/GNOME/network-manager-applet.git#commit=$_commit")
21 sha256sums=('SKIP')
23 pkgver() {
24   cd $pkgbase
25   git describe --tags | sed 's/-dev/dev/;s/[^-]*-g/r&/;s/-/+/g'
28 prepare() {
29   cd $pkgbase
32 build() {
33   arch-meson $pkgbase build -D selinux=false
34   meson compile -C build
37 check() {
38   meson test -C build --print-errorlogs
41 _pick() {
42   local p="$1" f d; shift
43   for f; do
44     d="$srcdir/$p/${f#$pkgdir/}"
45     mkdir -p "$(dirname "$d")"
46     mv "$f" "$d"
47     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
48   done
51 package_network-manager-applet() {
52   depends=(nm-connection-editor libmm-glib libnotify libsecret networkmanager
53            libappindicator-gtk3)
55   meson install -C build --destdir "$pkgdir"
57   cd "$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"
68   depends=(libnma)
69   conflicts=('libnm-gtk<1.8.18-1')
70   replaces=('libnm-gtk<1.8.18-1')
72   mv nmce/* "$pkgdir"