1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-25 04:20:41 +01:00
build/pkg/dhcpcd/build

28 lines
592 B
Text
Raw Normal View History

VERSION="9.0.1"
SRCDIR="dhcpcd-${VERSION}"
TARBALL="${SRCDIR}.tar.xz"
URL="https://roy.marples.name/downloads/dhcpcd"
SHA256SUM="faa6da04904e2a5b809a40760db7535aab2fca02d8cf30c3bba5f7b433b773b2"
DEPENDS="toolchain"
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"
}