2019-03-09 23:27:19 +01:00
|
|
|
VERSION="5.0.1"
|
2018-07-15 23:45:32 +02:00
|
|
|
SRCDIR="iw-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
|
|
URL="https://mirrors.edge.kernel.org/pub/software/network/iw"
|
2019-03-09 23:27:19 +01:00
|
|
|
SHA256SUM="1e38ea794a223525b2ea7fe78fd14f2a56121e62e21ba5f9dbe8c494b35b5c0d"
|
2019-03-30 23:28:30 +01:00
|
|
|
DEPENDS="libnl3-dev toolchain"
|
2018-07-15 23:45:32 +02:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cp -r ${1}/* ${PKGBUILDDIR}
|
|
|
|
|
2018-10-20 19:27:23 +02:00
|
|
|
local cflags="-O2 -Os"
|
2018-10-19 13:02:06 +02:00
|
|
|
local ldflags=""
|
|
|
|
|
|
|
|
if [ "x$TC_HARDENING" = "xyes" ]; then
|
2018-10-20 19:27:23 +02:00
|
|
|
cflags="$cflags -fstack-protector-all"
|
|
|
|
ldflags="$ldflags -z noexecstack -z relro -z now"
|
2018-10-19 13:02:06 +02:00
|
|
|
fi
|
2018-10-14 18:47:20 +02:00
|
|
|
|
|
|
|
CFLAGS="-O2 $cflags" \
|
|
|
|
LDFLAGS="$ldflags" \
|
|
|
|
PKG_CONFIG_SYSROOT_DIR="$TCDIR/$TARGET" \
|
2018-07-15 23:45:32 +02:00
|
|
|
make CC="${TARGET}-gcc" PKG_CONFIG="${TARGET}-pkg-config" PREFIX= \
|
2019-03-06 10:03:12 +01:00
|
|
|
SBINDIR=/bin DESTDIR="$PKGDEPLOYDIR" -j $NUMJOBS
|
2018-07-15 23:45:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
|
|
|
export PKG_CONFIG_SYSROOT_DIR="$TCDIR/$TARGET"
|
|
|
|
make CC="${TARGET}-gcc" PKG_CONFIG="${TARGET}-pkg-config" PREFIX= \
|
2019-03-06 10:03:12 +01:00
|
|
|
SBINDIR=/bin DESTDIR="$PKGDEPLOYDIR" install
|
2018-07-15 23:45:32 +02:00
|
|
|
|
2019-03-06 10:03:12 +01:00
|
|
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
|
2018-07-15 23:45:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
check_update() {
|
2019-03-30 10:40:54 +01:00
|
|
|
check_update_simple "$URL" "iw-" "tar.xz"
|
2018-07-15 23:45:32 +02:00
|
|
|
}
|