mirror of
https://github.com/pygos/build.git
synced 2024-11-25 04:20:41 +01:00
5c60596853
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
40 lines
No EOL
873 B
Text
Executable file
40 lines
No EOL
873 B
Text
Executable file
VERSION="7.0.7"
|
|
SRCDIR="dhcpcd-${VERSION}"
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
URL="https://roy.marples.name/downloads/dhcpcd"
|
|
SHA256SUM="af23f11cf7a6d6cbbe236ac7c4b45db5765a4c1e468e88f2ef37ac2fa2de3a49"
|
|
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/*
|
|
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"
|
|
} |