jobextra/iwd/PKGBUILD

81 lines
2.7 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=iwd
pkgver=2.17
pkgrel=02
pkgdesc='Internet Wireless Daemon w/o systemd'
url='https://git.kernel.org/cgit/network/wireless/iwd.git/'
depends=('glibc' 'readline' 'libreadline.so' 'ell' 'gcc-libs')
makedepends=('python-docutils' 'dbus' 'automake' 'autoconf') ####### remove when autoreconf is removed
optdepends=('qrencode: for displaying QR code after DPP is started')
# https://lore.kernel.org/iwd/20240122104541.74f1a697@workstation64.local/T/#u
options=('!lto')
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
#changelog=ChangeLog
#install=iwd.install
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
## remember to remove autoconf if unneeded in future upgrades
}
build() {
cd ${pkgname}-${pkgver}
dbus-run-session ./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib/iwd \
--disable-systemd-service \
--enable-external-ell \
--enable-wired \
--enable-ofono \
--enable-hwsim \
--disable-tools
make
# --disable-dbus-policy \
}
check() {
cd ${pkgname}-${pkgver}
make -k check
}
package() {
cd ${pkgname}-${pkgver}
make install DESTDIR="${pkgdir}"
install -Dm 644 README -t "${pkgdir}/usr/share/doc/${pkgname}"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('LGPL-2.1-or-later')
validpgpkeys=('E932D120BC2AEC444E558F0106CA9F5D1DCF2659')
sha256sums=(5901ab3fbb74bb75ec9adda35daeff595e4d238882fee7fc8c805b30ca79d943 # iwd-2.17.tar.xz
57c46389ac953737d5a1fb91e2cecfe972dfcf8f192823b777e3f5735dcafbc5 # iwd-2.17.tar.sign
d5fb4fb864b7a0632117aa2039df535ab5c1d024ae618a1f09e34dfab8ee0cc7) # 0001-use-network-group-for-unprivileged-access.diff
## ae263e11533afb653786f91e3d3b50e1e595bafc3294d99601dba191789a0015 iwd-2.17-02-x86_64.pkg.tar.lz