summaryrefslogtreecommitdiff
path: root/libnm/Pkgfile
blob: 2fae6208d529106931cadc5423fadfb21d3fa076 (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.0
    8 release=1
    9 source=(https://ftp.gnome.org/pub/gnome/sources/NetworkManager/${version%.*}/NetworkManager-${version}.tar.xz)
   10 
   11 build() {
   12   cd NetworkManager-$version
   13 
   14   sed '/initrd/d' -i src/meson.build
   15 
   16   mkdir build
   17   cd build
   18 
   19   CXXFLAGS+="-O2 -fPIC" \
   20   meson --prefix /usr \
   21     --sysconfdir /etc \
   22     --localstatedir /var \
   23     --libexecdir /usr/lib/networkmanager \
   24     -Ddbus_conf_dir=/usr/share/dbus-1/system.d \
   25     -Dudev_dir=/lib/udev \
   26     -Ddhcpcd=/sbin/dhcpcd \
   27     -Dresolvconf=true \
   28     -Dconfig_dns_rc_manager_default=resolvconf \
   29     -Dcrypto=nss \
   30     -Dintrospection=false \
   31     -Dsession_tracking_consolekit=false \
   32     -Dwifi=false \
   33     -Dwext=false \
   34     -Dpolkit=false \
   35     -Dmodify_system=true \
   36     -Dlibnm_glib=true \
   37     -Difupdown=false \
   38     -Dnmtui=false \
   39     -Dnmcli=false \
   40     -Dsession_tracking=no \
   41     -Db_lto=false \
   42     -Dlibaudit=no \
   43     -Dlibpsl=false \
   44     -Dppp=false \
   45     -Dofono=false \
   46     -Dselinux=false \
   47     -Dmodem_manager=false \
   48     -Dsystemdsystemunitdir=false \
   49     -Dsystemd_journal=false \
   50     -Dqt=false \
   51     -Ddocs=false \
   52     -Dtests=no \
   53     -Djson_validation=true \
   54     -Dovs=false \
   55     -Dmore_logging=false \
   56     -Dmore_asserts=0 \
   57     -Dlibpsl=false \
   58     ..
   59   ninja
   60   mkdir $SRC/install
   61   DESTDIR=$SRC/install/ ninja install
   62 
   63   install -d -m 0755 $PKG/usr/lib/pkgconfig
   64   cp -dr --no-preserve='ownership' $SRC/install/usr/lib/{libnm,libnm-glib,libnm-glib-vpn,libnm-util}.so* $PKG/usr/lib/
   65   cp -dr --no-preserve='ownership' $SRC/install/usr/lib/pkgconfig/{libnm,libnm-glib,libnm-glib-vpn,libnm-util}.pc $PKG/usr/lib/pkgconfig/
   66   rm $PKG/usr/lib/*.so
   67 
   68   # conflicts with networkmanager
   69   rm \
   70     $PKG/usr/lib/libnm.so.0 \
   71     $PKG/usr/lib/libnm.so.0.1.0 \
   72     $PKG/usr/lib/pkgconfig/libnm.pc
   73 }

Generated by cgit