mirror of
https://github.com/pygos/build.git
synced 2024-11-05 11:37:10 +01:00
50dce293c1
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
37 lines
No EOL
758 B
Text
Executable file
37 lines
No EOL
758 B
Text
Executable file
VERSION="7.0.8"
|
|
SRCDIR="dhcpcd-${VERSION}"
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
URL="https://roy.marples.name/downloads/dhcpcd"
|
|
SHA256SUM="96968e883369ab4afd11eba9dfd9bb109f5dfff65b2814ce6c432f36362dc9b5"
|
|
DEPENDS="toolchain"
|
|
|
|
prepare() {
|
|
return
|
|
}
|
|
|
|
build() {
|
|
local SOURCE="$1"
|
|
local DEPLOY="$2"
|
|
|
|
cp -r $SOURCE/* $PKGBUILDDIR
|
|
|
|
run_configure "."
|
|
make -j $NUMJOBS
|
|
}
|
|
|
|
deploy() {
|
|
local SOURCE="$1"
|
|
local DEPLOY="$2"
|
|
|
|
make DESTDIR="$DEPLOY" install
|
|
|
|
chmod 755 $DEPLOY/bin/*
|
|
cat_file_override "dhcpcd.conf" > "$DEPLOY/etc/dhcpcd.conf"
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY"
|
|
}
|
|
|
|
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"
|
|
} |