# Maintainer : Christian Rebischke # Maintainer: Levente Polyak # Contributor: AndyRTR pkgname=iwd pkgver=1.19 pkgrel=2 pkgdesc='Internet Wireless Daemon' arch=('x86_64') url='https://git.kernel.org/cgit/network/wireless/iwd.git/' license=('LGPL') depends=('glibc' 'readline' 'libreadline.so' 'ell') makedepends=('python-docutils' 'dbus' 'systemd') source=("https://www.kernel.org/pub/linux/network/wireless/iwd-${pkgver}.tar"{.xz,.sign} 'iwd-1.19_fs-72691.patch::https://git.kernel.org/pub/scm/network/wireless/iwd.git/patch/?id=4e61d04e0de69a2c02bb39c774adf84dcbae6bb9') # https://mirrors.edge.kernel.org/pub/linux/network/wireless/sha256sums.asc sha256sums=('dd65a8795f6127fb1b9e29f2092686b0590a0d3738c2b90c792ccd320deaf966' 'SKIP' '7e799a079ab38b28a376cf6e9bd8953aaf368b731d5dea40940e8a01a75499ba') validpgpkeys=('E932D120BC2AEC444E558F0106CA9F5D1DCF2659') changelog=ChangeLog install=iwd.install prepare() { cd ${pkgname}-${pkgver} # Fix commands like "iwctl station wlan0 get-networks" producing no output (FS#72691) patch -Np1 -i "${srcdir}/iwd-1.19_fs-72691.patch" } 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} # pass broken tests - should reported upstream # One test fail because we need kernel capabilities that # we don't have inside of systemd-nspawn # this could only be fixed via changing our build environment make -k check || /bin/true } package() { cd ${pkgname}-${pkgver} make install DESTDIR="${pkgdir}" install -Dm 644 README -t "${pkgdir}/usr/share/doc/${pkgname}" } # vim: ts=2 sw=2 et: