1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-05 11:37:10 +01:00
build/pkg/dhcpcd/build
David Oberhollenzer 645881d071 Bump dhcpcd version
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-05-08 15:01:23 +02:00

42 lines
No EOL
866 B
Text
Executable file

VERSION="7.0.4"
SRCDIR="dhcpcd-${VERSION}"
TARBALL="${SRCDIR}.tar.xz"
URL="https://roy.marples.name/downloads/dhcpcd"
SHA256SUM="1fa414be34383578e2c343dfc8cdcb95e2da74f62121b394c88d60698c889a78"
DEPENDS="toolchain"
prepare() {
return
}
build() {
local SOURCE="$1"
local DEPLOY="$2"
cp -r $SOURCE/* $PKGBUILDDIR
./configure --prefix="" --host="$TARGET" --sbindir=/bin \
--datadir=/share --libexecdir=/lib/libexec \
--disable-static
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local DEPLOY="$2"
make DESTDIR="$DEPLOY" install
chmod 755 $DEPLOY/bin/*
strip_files $DEPLOY/bin/*
cat_file_override "dhcpcd.conf" > "$DEPLOY/etc/dhcpcd.conf"
rm -rf "$DEPLOY/usr"
}
check_update() {
curl --silent -L "$URL" | grep -o ">dhcpcd-[0-9.]*tar.xz<" | \
sed 's/>dhcpcd-//g' | sed 's/.tar.xz<//g' | \
verson_find_greatest "$VERSION"
}