summaryrefslogtreecommitdiff
path: root/libnm/Pkgfile
blob: 866cafa97f623daeaca96f8b11b9220869e8c816 (plain)
    1 # Description: Network configuration tool
    2 # URL: https://wiki.gnome.org/Projects/NetworkManager/
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: curl dbus-glib intltool jansson libndp libxslt nss
    5 
    6 name=libnm
    7 version=1.18.10
    8 release=1
    9 source=(https://ftp.gnome.org/pub/gnome/sources/NetworkManager/${version%.*}/NetworkManager-${version}.tar.xz)
   10 
   11 build() {
   12   sed '/initrd/d' -i NetworkManager-$version/src/meson.build
   13 
   14   CXXFLAGS+="-O2 -fPIC" \
   15   meson setup NetworkManager-$version build \
   16     --prefix /usr \
   17     --sysconfdir /etc \
   18     --localstatedir /var \
   19     --libexecdir /usr/lib/networkmanager \
   20     --buildtype=plain \
   21     -D dbus_conf_dir=/usr/share/dbus-1/system.d \
   22     -D udev_dir=/lib/udev \
   23     -D dhcpcd=/sbin/dhcpcd \
   24     -D resolvconf=true \
   25     -D config_dns_rc_manager_default=resolvconf \
   26     -D crypto=nss \
   27     -D introspection=false \
   28     -D session_tracking_consolekit=false \
   29     -D wifi=false \
   30     -D wext=false \
   31     -D polkit=false \
   32     -D modify_system=true \
   33     -D libnm_glib=true \
   34     -D ifupdown=false \
   35     -D nmtui=false \
   36     -D nmcli=false \
   37     -D session_tracking=no \
   38     -D b_lto=false \
   39     -D libaudit=no \
   40     -D libpsl=false \
   41     -D ppp=false \
   42     -D ofono=false \
   43     -D selinux=false \
   44     -D modem_manager=false \
   45     -D systemdsystemunitdir=false \
   46     -D systemd_journal=false \
   47     -D qt=false \
   48     -D docs=false \
   49     -D tests=no \
   50     -D json_validation=true \
   51     -D ovs=false \
   52     -D more_logging=false \
   53     -D more_asserts=0 \
   54     -D libpsl=false
   55   meson compile -C build
   56   DESTDIR=$SRC/install meson install -C build
   57 
   58   install -d -m 0755 $PKG/usr/lib/pkgconfig
   59   cp -dr --no-preserve='ownership' $SRC/install/usr/lib/{libnm,libnm-glib,libnm-glib-vpn,libnm-util}.so* $PKG/usr/lib/
   60   cp -dr --no-preserve='ownership' $SRC/install/usr/lib/pkgconfig/{libnm,libnm-glib,libnm-glib-vpn,libnm-util}.pc $PKG/usr/lib/pkgconfig/
   61   rm $PKG/usr/lib/*.so
   62 
   63   # conflicts with networkmanager
   64   rm \
   65     $PKG/usr/lib/libnm.so.0 \
   66     $PKG/usr/lib/libnm.so.0.1.0 \
   67     $PKG/usr/lib/pkgconfig/libnm.pc
   68 }

Generated by cgit