[arch-commits] Commit in libnm-glib/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Sun Dec 22 17:14:09 UTC 2019


    Date: Sunday, December 22, 2019 @ 17:14:08
  Author: heftig
Revision: 538856

1.18.5dev+12+ga8746f48ca-1

Added:
  libnm-glib/trunk/PKGBUILD

----------+
 PKGBUILD |  114 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 114 insertions(+)

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-12-22 17:14:08 UTC (rev 538856)
@@ -0,0 +1,114 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: Jan de Groot <jgc at archlinxu.org>
+# Contributor: Wael Nasreddine <gandalf at siemens-mobiles.org>
+# Contributor: Tor Krill <tor at krill.nu>
+# Contributor: Will Rea <sillywilly at gmail.com>
+# Contributor: Valentine Sinitsyn <e_val at inbox.ru>
+
+pkgname=libnm-glib
+pkgver=1.18.5dev+12+ga8746f48ca
+pkgrel=1
+pkgdesc='NetworkManager client library (legacy)'
+arch=(x86_64)
+url=https://wiki.gnome.org/Projects/NetworkManager
+license=(
+  GPL2
+  LGPL2.1
+)
+depends=(
+  dbus
+  dbus-glib
+  glib2
+  glibc
+  libgudev
+  nspr
+  nss
+  util-linux
+)
+makedepends=(
+  git
+  gobject-introspection
+  intltool
+  libndp
+  libxslt
+  meson
+  python-gobject
+  vala
+)
+_commit=a8746f48ca088b4cd3799e540b8606df1f1e8522  # nm-1-18
+source=("git+https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd NetworkManager
+  git describe | sed 's/-dev/dev/;s/-rc/rc/;s/-/+/g'
+}
+
+prepare() {
+  cd NetworkManager
+}
+
+build() {
+  local meson_args=(
+    # system paths
+    -D dbus_conf_dir=/usr/share/dbus-1/system.d
+
+    # platform
+    -D dist_version="$pkgver-$pkgrel"
+    -D session_tracking_consolekit=false
+    -D suspend_resume=systemd
+    -D polkit=false
+    -D modify_system=true
+    -D polkit_agent=false
+    -D selinux=false
+    -D libaudit=no
+
+    # features
+    -D ppp=false
+    -D modem_manager=false
+    -D concheck=false
+    -D ovs=false
+    -D libnm_glib=true
+    -D nmcli=false
+    -D nmtui=false
+    -D ebpf=true
+
+    # configuration plugins
+    -D config_plugins_default=keyfile
+
+    # miscellaneous
+    -D introspection=true
+    -D vapi=true
+    -D docs=false
+    -D tests=no
+    -D more_asserts=no
+    -D more_logging=false
+    -D libpsl=false
+    -D json_validation=false
+    -D qt=false
+  )
+
+  arch-meson NetworkManager build "${meson_args[@]}"
+  ninja -C build
+}
+
+package() {
+  DESTDIR="$PWD/install" meson install -C build
+
+  local src dst
+  for src in \
+    install/usr/include/{NetworkManager,libnm-glib} \
+    install/usr/lib/girepository-1.0/{NetworkManager,NMClient}-* \
+    install/usr/lib/libnm-* \
+    install/usr/lib/pkgconfig/{NetworkManager,libnm-}* \
+    install/usr/share/gir-1.0/{NetworkManager,NMClient}-* \
+    install/usr/share/vala/vapi/libnm-*
+  do
+    dst="$pkgdir/${src#install/}"
+    mkdir -p "${dst%/*}"
+    mv "$src" "$dst"
+  done
+}
+
+# vim:set sw=2 et:


More information about the arch-commits mailing list