2018-05-06 20:27:45 +02:00
|
|
|
VERSION="7.0.4"
|
2018-02-25 00:47:14 +01:00
|
|
|
SRCDIR="dhcpcd-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
|
|
URL="https://roy.marples.name/downloads/dhcpcd"
|
2018-05-06 20:27:45 +02:00
|
|
|
SHA256SUM="1fa414be34383578e2c343dfc8cdcb95e2da74f62121b394c88d60698c889a78"
|
2018-02-25 00:47:14 +01:00
|
|
|
DEPENDS="toolchain"
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
local SOURCE="$1"
|
|
|
|
local DEPLOY="$2"
|
|
|
|
|
|
|
|
cp -r $SOURCE/* $PKGBUILDDIR
|
|
|
|
|
|
|
|
./configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
2018-04-06 01:03:29 +02:00
|
|
|
--datadir=/share --libexecdir=/lib/libexec \
|
|
|
|
--disable-static
|
2018-02-25 00:47:14 +01:00
|
|
|
|
|
|
|
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"
|
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
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"
|
|
|
|
}
|