mirror of
https://github.com/pygos/build.git
synced 2024-11-22 19:19:46 +01:00
31 lines
616 B
Text
Executable file
31 lines
616 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"
|
|
}
|