1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-05 11:37:10 +01:00
build/pkg/iw/build
David Oberhollenzer 55463cf428 Cleanup dependencies to toolchain
- crt-dev is a dependency of toolchain
 - basefiles is a dependency of toolchain
 - libstdc++ is (now also) a dependency of toolchain

This commit removes direct build dependencies to the above and replacest
them with dependencies to the toolchain package.

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-03-30 23:28:30 +01:00

40 lines
1,001 B
Text
Executable file

VERSION="5.0.1"
SRCDIR="iw-${VERSION}"
TARBALL="${SRCDIR}.tar.xz"
URL="https://mirrors.edge.kernel.org/pub/software/network/iw"
SHA256SUM="1e38ea794a223525b2ea7fe78fd14f2a56121e62e21ba5f9dbe8c494b35b5c0d"
DEPENDS="libnl3-dev toolchain"
prepare() {
return
}
build() {
cp -r ${1}/* ${PKGBUILDDIR}
local cflags="-O2 -Os"
local ldflags=""
if [ "x$TC_HARDENING" = "xyes" ]; then
cflags="$cflags -fstack-protector-all"
ldflags="$ldflags -z noexecstack -z relro -z now"
fi
CFLAGS="-O2 $cflags" \
LDFLAGS="$ldflags" \
PKG_CONFIG_SYSROOT_DIR="$TCDIR/$TARGET" \
make CC="${TARGET}-gcc" PKG_CONFIG="${TARGET}-pkg-config" PREFIX= \
SBINDIR=/bin DESTDIR="$PKGDEPLOYDIR" -j $NUMJOBS
}
deploy() {
export PKG_CONFIG_SYSROOT_DIR="$TCDIR/$TARGET"
make CC="${TARGET}-gcc" PKG_CONFIG="${TARGET}-pkg-config" PREFIX= \
SBINDIR=/bin DESTDIR="$PKGDEPLOYDIR" install
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
}
check_update() {
check_update_simple "$URL" "iw-" "tar.xz"
}