blob: d001a023f148eb1d1a4cb43fa4c9ec1930bddec3 (
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 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 -Db_ndebug=true \
22 -Ddbus_conf_dir=/usr/share/dbus-1/system.d \
23 -Dudev_dir=/lib/udev \
24 -Ddhcpcd=/sbin/dhcpcd \
25 -Dresolvconf=true \
26 -Dconfig_dns_rc_manager_default=resolvconf \
27 -Dcrypto=nss \
28 -Dintrospection=false \
29 -Dsession_tracking_consolekit=false \
30 -Dwifi=false \
31 -Dwext=false \
32 -Dpolkit=false \
33 -Dmodify_system=true \
34 -Dlibnm_glib=true \
35 -Difupdown=false \
36 -Dnmtui=false \
37 -Dnmcli=false \
38 -Dsession_tracking=no \
39 -Db_lto=false \
40 -Dlibaudit=no \
41 -Dlibpsl=false \
42 -Dppp=false \
43 -Dofono=false \
44 -Dselinux=false \
45 -Dmodem_manager=false \
46 -Dsystemdsystemunitdir=false \
47 -Dsystemd_journal=false \
48 -Dqt=false \
49 -Ddocs=false \
50 -Dtests=no \
51 -Djson_validation=true \
52 -Dovs=false \
53 -Dmore_logging=false \
54 -Dmore_asserts=0 \
55 -Dlibpsl=false
56 meson compile -C build
57 DESTDIR=$SRC/install meson install -C build
58
59 install -d -m 0755 $PKG/usr/lib/pkgconfig
60 cp -dr --no-preserve='ownership' $SRC/install/usr/lib/{libnm,libnm-glib,libnm-glib-vpn,libnm-util}.so* $PKG/usr/lib/
61 cp -dr --no-preserve='ownership' $SRC/install/usr/lib/pkgconfig/{libnm,libnm-glib,libnm-glib-vpn,libnm-util}.pc $PKG/usr/lib/pkgconfig/
62 rm $PKG/usr/lib/*.so
63
64 # conflicts with networkmanager
65 rm \
66 $PKG/usr/lib/libnm.so.0 \
67 $PKG/usr/lib/libnm.so.0.1.0 \
68 $PKG/usr/lib/pkgconfig/libnm.pc
69 }
|