2019-09-17 21:14:59 +02:00
|
|
|
VERSION="5.3"
|
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-09-17 21:14:59 +02:00
|
|
|
SHA256SUM="04afe857bc8dea67e461946de30ae1b012954b6965839c5c3fda7d0ed15505d5"
|
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" \
|
2019-04-21 20:56:34 +02:00
|
|
|
make CC="${TARGET}-gcc" PREFIX= \
|
2019-03-06 10:03:12 +01:00
|
|
|
SBINDIR=/bin DESTDIR="$PKGDEPLOYDIR" -j $NUMJOBS
|
2018-07-15 23:45:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
2019-04-21 20:56:34 +02:00
|
|
|
make CC="${TARGET}-gcc" 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-07-07 16:17:16 +02:00
|
|
|
check_update_simple "$URL" "iw" "tar.xz"
|
2018-07-15 23:45:32 +02:00
|
|
|
}
|