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 fa4eff263b Cleanup: implement defaults for package functions
This commit adds an "emptypackage" template that implements defaults
for all package functions and is included before every package.

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2020-04-16 15:16:58 +02:00

28 lines
592 B
Plaintext
Executable file

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