jobextra/iwd/PKGBUILD-arch

63 lines
2.1 KiB
Plaintext

# Maintainer : Christian Rebischke <chris.rebischke@archlinux.org>
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: AndyRTR <andyrtr at archlinux.org>
pkgname=iwd
pkgver=2.15
pkgrel=1
pkgdesc='Internet Wireless Daemon'
arch=('x86_64')
url='https://git.kernel.org/cgit/network/wireless/iwd.git/'
license=('LGPL-2.1-or-later')
depends=('glibc' 'readline' 'libreadline.so' 'ell' 'gcc-libs')
makedepends=('python-docutils' 'dbus' 'systemd')
optdepends=('qrencode: for displaying QR code after DPP is started')
source=(https://www.kernel.org/pub/linux/network/wireless/iwd-${pkgver}.tar{.xz,.sign}
0001-use-network-group-for-unprivileged-access.diff)
# https://mirrors.edge.kernel.org/pub/linux/network/wireless/sha256sums.asc
sha256sums=('bac5d236ac0a0dc3c576e8f362d64b7467e9d5c4b94c1a33a4c8ce5d325a82f1'
'SKIP'
'd5fb4fb864b7a0632117aa2039df535ab5c1d024ae618a1f09e34dfab8ee0cc7')
validpgpkeys=('E932D120BC2AEC444E558F0106CA9F5D1DCF2659')
# https://lore.kernel.org/iwd/20240122104541.74f1a697@workstation64.local/T/#u
options=('!lto')
prepare() {
cd ${pkgname}-${pkgver}
# replace Debian "netdev" group with existing "network" group
# for unprivileged access to iwd - avoid also log spam
# https://gitlab.archlinux.org/archlinux/packaging/packages/iwd/-/issues/2 + #3
patch -Np1 -i ../0001-use-network-group-for-unprivileged-access.diff
# 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
}
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}
make check
}
package() {
cd ${pkgname}-${pkgver}
make install DESTDIR="${pkgdir}"
install -Dm 644 README -t "${pkgdir}/usr/share/doc/${pkgname}"
}