2023-08-20 19:12:37 +02:00
|
|
|
# Maintainer : Christian Rebischke <chris.rebischke@archlinux.org>
|
|
|
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
|
|
|
# Contributor: AndyRTR <andyrtr at archlinux.org>
|
|
|
|
|
|
|
|
pkgname=iwd
|
2024-03-05 16:00:47 +01:00
|
|
|
pkgver=2.16
|
2024-02-11 00:38:00 +01:00
|
|
|
pkgrel=1
|
2023-08-20 19:12:37 +02:00
|
|
|
pkgdesc='Internet Wireless Daemon'
|
|
|
|
arch=('x86_64')
|
|
|
|
url='https://git.kernel.org/cgit/network/wireless/iwd.git/'
|
2024-01-17 12:34:58 +01:00
|
|
|
license=('LGPL-2.1-or-later')
|
2023-08-20 19:12:37 +02:00
|
|
|
depends=('glibc' 'readline' 'libreadline.so' 'ell' 'gcc-libs')
|
|
|
|
makedepends=('python-docutils' 'dbus' 'systemd')
|
|
|
|
optdepends=('qrencode: for displaying QR code after DPP is started')
|
2024-01-25 19:34:38 +01:00
|
|
|
source=(https://www.kernel.org/pub/linux/network/wireless/iwd-${pkgver}.tar{.xz,.sign}
|
2024-01-17 12:34:58 +01:00
|
|
|
0001-use-network-group-for-unprivileged-access.diff)
|
2023-08-20 19:12:37 +02:00
|
|
|
# https://mirrors.edge.kernel.org/pub/linux/network/wireless/sha256sums.asc
|
2024-03-05 16:00:47 +01:00
|
|
|
sha256sums=('c1a82032e994861e794cf3b5a16d07ae1aa03a6674f716c73408ffeae2a233ba'
|
2024-01-17 12:34:58 +01:00
|
|
|
'SKIP'
|
2024-01-25 19:34:38 +01:00
|
|
|
'd5fb4fb864b7a0632117aa2039df535ab5c1d024ae618a1f09e34dfab8ee0cc7')
|
2023-08-20 19:12:37 +02:00
|
|
|
validpgpkeys=('E932D120BC2AEC444E558F0106CA9F5D1DCF2659')
|
2024-01-24 22:29:19 +01:00
|
|
|
# https://lore.kernel.org/iwd/20240122104541.74f1a697@workstation64.local/T/#u
|
|
|
|
options=('!lto')
|
2024-01-17 12:34:58 +01:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
# replace Debian "netdev" group with existing "network" group
|
|
|
|
# for unprivileged access to iwd - avoid also log spam
|
2024-01-25 19:34:38 +01:00
|
|
|
# https://gitlab.archlinux.org/archlinux/packaging/packages/iwd/-/issues/2 + #3
|
|
|
|
patch -Np1 -i ../0001-use-network-group-for-unprivileged-access.diff
|
2024-01-24 22:29:19 +01:00
|
|
|
|
|
|
|
# https://lore.kernel.org/iwd/20240122105312.66fb4dbf@workstation64.local/T/#u
|
|
|
|
# disable one expected test failure - requires a kernel module we cannot load
|
|
|
|
# from inside the chroot
|
|
|
|
sed -i "s:unit/test-wsc::" Makefile.am
|
|
|
|
autoreconf -vfi
|
2024-01-17 12:34:58 +01:00
|
|
|
}
|
2023-08-20 19:12:37 +02:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
dbus-run-session ./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--libexecdir=/usr/lib/iwd \
|
|
|
|
--enable-external-ell \
|
|
|
|
--enable-wired \
|
|
|
|
--enable-ofono \
|
|
|
|
--enable-hwsim \
|
|
|
|
--disable-tools
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd ${pkgname}-${pkgver}
|
2024-01-24 22:29:19 +01:00
|
|
|
make check
|
2023-08-20 19:12:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
make install DESTDIR="${pkgdir}"
|
|
|
|
install -Dm 644 README -t "${pkgdir}/usr/share/doc/${pkgname}"
|
|
|
|
}
|