mirror of
https://github.com/pygos/build.git
synced 2024-11-21 18:49:46 +01:00
27 lines
632 B
Text
Executable file
27 lines
632 B
Text
Executable file
VERSION="9.0.2"
|
|
SRCDIR="dhcpcd-${VERSION}"
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
URL="https://roy.marples.name/downloads/dhcpcd"
|
|
SHA256SUM="f6e9f2fca7f5ebaf67915ff2ff66122eec0e7acb490f3c816781d65ccb5dd121"
|
|
DEPENDS="toolchain"
|
|
|
|
build() {
|
|
local SOURCE="$1"
|
|
|
|
cp -r $SOURCE/* $PKGBUILDDIR
|
|
|
|
run_configure "." --enable-privsep --privsepuser="dhcpcd"
|
|
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"
|
|
}
|