mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
31 lines
615 B
Text
Executable file
31 lines
615 B
Text
Executable file
VERSION="7.2.3"
|
|
SRCDIR="dhcpcd-${VERSION}"
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
URL="https://roy.marples.name/downloads/dhcpcd"
|
|
SHA256SUM="74ab38177548abe968c2abacefffdd97b573acaedd4f77b6c0a54ae38f68566e"
|
|
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"
|
|
}
|