1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-05-20 12:36:14 +02:00
build/pkg/dhcpcd/build
David Oberhollenzer d396468fba Bump dhcpcd version
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-03-09 23:28:56 +01:00

34 lines
721 B
Plaintext
Executable file

VERSION="7.1.1"
SRCDIR="dhcpcd-${VERSION}"
TARBALL="${SRCDIR}.tar.xz"
URL="https://roy.marples.name/downloads/dhcpcd"
SHA256SUM="a27924873df92c47ad8b76a4fba4dfb41afaa3f90a4ba5f0e8e3ad446d792441"
DEPENDS="toolchain"
prepare() {
return
}
build() {
local SOURCE="$1"
cp -r $SOURCE/* $PKGBUILDDIR
run_configure "."
make -j $NUMJOBS
}
deploy() {
make DESTDIR="$PKGDEPLOYDIR" install
chmod 755 $PKGDEPLOYDIR/bin/*
cat_file_override "dhcpcd.conf" > "$PKGDEPLOYDIR/etc/dhcpcd.conf"
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
}
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"
}