blob: bfdaca0697f9287f95d0ed9a32dd63f2f19a96d0 (
plain)
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
|
# Maintainer: a821 <a821 at mail de>
# Contributor: mrdotx <klassiker at gmx.de>
# Contributor: AndyRTR <andyrtr at archlinux.org>
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Christian Rebischke <chris.rebischke@archlinux.org>
_pkgname='iwd'
pkgname=iwd-git
pkgver=3.3.r2.gf4439fd2
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'
'gcc-libs'
)
makedepends=(
'git'
'python-docutils'
'dbus'
'systemd'
)
optdepends=('qrencode: for displaying QR code after DPP is started')
provides=('iwd')
conflicts=('iwd')
source=(
'git+https://git.kernel.org/pub/scm/network/wireless/iwd.git'
'git+https://git.kernel.org/pub/scm/libs/ell/ell.git'
)
sha256sums=('SKIP'
'SKIP')
options=('!lto')
pkgver() {
cd "$_pkgname"
git describe --long | sed -r 's/^r//;s/([^-]*-g)/r\1/;s/-/./g'
}
prepare() {
cd "$_pkgname"
# replace Debian "netdev" group with existing "network" group
# see issues 2 and 3 on arch's gitlab iwd package
sed -i 's/netdev/network/' src/iwd-dbus.conf wired/ead-dbus.conf
# remove redefined _FORTIFY_SOURCE flag
sed -i '/_FORTIFY_SOURCE/d' configure.ac
# remove test that fails in chroot
sed -i "s:unit/test-wsc::" Makefile.am
autoreconf -vfi
}
build() {
cd "$_pkgname"
dbus-run-session ./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib/iwd \
--enable-wired \
--enable-ofono \
--enable-hwsim \
--disable-tools
make
}
check() {
make -C "$_pkgname" check
}
package() {
cd "$_pkgname"
make install DESTDIR="$pkgdir"
install -Dm 644 README -t "$pkgdir/usr/share/doc/$pkgname"
}
|