1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-22 11:09:46 +01:00
build/pkg/dhcpcd/build
David Oberhollenzer 29a79dcb3c Fix wrong usage of check_update_simple
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-07-07 16:17:16 +02:00

31 lines
615 B
Text
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() {
check_update_simple "$URL" "dhcpcd" "tar.xz"
}