This repository has been archived by the owner on May 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 298
/
PKGBUILD
108 lines (95 loc) · 2.36 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinxu.org>
# Contributor: Wael Nasreddine <gandalf@siemens-mobiles.org>
# Contributor: Tor Krill <tor@krill.nu>
# Contributor: Will Rea <sillywilly@gmail.com>
# Contributor: Valentine Sinitsyn <e_val@inbox.ru>
# Contributor: Ryszard Knop <dragoon@dragonic.eu>
pkgname=lib32-libnm
pkgver=1.42.6
pkgrel=1
pkgdesc="NetworkManager client library (32-bit)"
url="https://networkmanager.dev/"
arch=(x86_64)
license=(LGPL)
depends=(
lib32-gcc-libs
lib32-glib2
lib32-nspr
lib32-nss
lib32-systemd
lib32-util-linux
libnm
)
makedepends=(
git
lib32-dbus
lib32-libndp
lib32-libpsl
lib32-polkit
libxslt
meson
)
provides=(libnm.so)
_commit=b6cc7c7e695ba3b1f2a5c95b0d6df418b8556e57 # tags/1.42.6^0
source=("git+https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd NetworkManager
git describe --tags | sed 's/-dev/dev/;s/-rc/rc/;s/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd NetworkManager
}
build() {
export CC='gcc -m32'
export CXX='g++ -m32'
export PKG_CONFIG=i686-pc-linux-gnu-pkg-config
local meson_options=(
# system paths
--libdir=/usr/lib32
-D dbus_conf_dir=/usr/share/dbus-1/system.d
# platform
-D dist_version="$pkgver-$pkgrel"
-D libaudit=no
-D session_tracking_consolekit=false
-D suspend_resume=systemd
-D modify_system=true
-D selinux=false
# features
-D bluez5_dun=false
-D concheck=false
-D ebpf=false
-D iwd=false
-D modem_manager=false
-D nm_cloud_setup=false
-D nmcli=false
-D nmtui=false
-D ovs=false
-D ppp=false
-D teamdctl=false
# configuration plugins
-D config_plugins_default=keyfile
-D ifcfg_rh=false
-D ifupdown=false
# handlers for resolv.conf
-D netconfig=no
-D config_dns_rc_manager_default=symlink
# miscellaneous
-D vapi=false
-D docs=false
-D introspection=false
-D tests=no
-D more_asserts=no
-D more_logging=false
-D qt=false
)
arch-meson NetworkManager build "${meson_options[@]}"
meson compile -C build
}
package() {
meson install -C build --destdir "${pkgdir}"
rm -r "${pkgdir}"/{etc,usr/{bin,include,lib,lib32/NetworkManager,share},var}
}
# vim:set sw=2 sts=-1 et: