2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-15 11:10:08 -07:00
repo/extra/wpa_supplicant/build

24 lines
719 B
Plaintext
Raw Normal View History

2019-06-21 02:39:04 -06:00
#!/bin/sh -e
# The wpa_supplicant package is built statically using
# libnl-tiny which is a minimal version of libnl maintained
# by OpenWRT.
make CC="${CC:-cc}" ALL_LIBS=libnl-tiny.a -C libnl
# The CFLAGS must be set to link to the above locally built
# libnl-tiny library.
export CFLAGS="$CFLAGS -I$PWD/libnl/include -L$PWD/libnl -lnl-tiny"
export CFLAGS="$CFLAGS -static -D_GNU_SOURCE -DLIBNL1_COMPAT"
2019-06-21 02:39:04 -06:00
cd wpa_supplicant
make LIBDIR=/usr/lib BINDIR=/usr/bin DRV_LIBS="$CFLAGS" CC="${CC:-cc}"
2020-02-14 09:55:38 -07:00
make LIBDIR=/usr/lib BINDIR=/usr/bin DESTDIR="$1" install
mkdir -p \
"$1/usr/share/man/man5" \
"$1/usr/share/man/man8"
cp -f doc/docbook/*.5 "$1/usr/share/man/man5"
cp -f doc/docbook/*.8 "$1/usr/share/man/man8"