1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-18 09:19:46 +01:00
build/pkg/iw/build
David Oberhollenzer 8fa44569d8 cleanup: remove deploy directory argument from package command
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-03-06 10:03:12 +01:00

42 lines
1.1 KiB
Text
Executable file

VERSION="4.14"
SRCDIR="iw-${VERSION}"
TARBALL="${SRCDIR}.tar.xz"
URL="https://mirrors.edge.kernel.org/pub/software/network/iw"
SHA256SUM="f01671c0074bfdec082a884057edba1b9efd35c89eda554638496f03b769ad89"
DEPENDS="libnl3-dev crt-dev"
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() {
curl --silent -L $URL | grep -o "iw-[0-9.]*tar.xz" | \
sed 's/iw-//g' | sed 's/.tar.xz//g' | \
verson_find_greatest "$VERSION"
}