mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
9d75cc8400
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
36 lines
695 B
Text
Executable file
36 lines
695 B
Text
Executable file
VERSION="7.0.2"
|
|
SRCDIR="dhcpcd-${VERSION}"
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
URL="https://roy.marples.name/downloads/dhcpcd"
|
|
SHA256SUM="c52bfae93d327004081a33e867dec50ea580e0d399bbfd662978bfd73c84f405"
|
|
DEPENDS="toolchain"
|
|
|
|
prepare() {
|
|
return
|
|
}
|
|
|
|
build() {
|
|
local SOURCE="$1"
|
|
local DEPLOY="$2"
|
|
|
|
cp -r $SOURCE/* $PKGBUILDDIR
|
|
|
|
./configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
|
--datadir=/share --libexecdir=/lib/libexec \
|
|
--disable-static
|
|
|
|
make -j $NUMJOBS
|
|
}
|
|
|
|
deploy() {
|
|
local SOURCE="$1"
|
|
local DEPLOY="$2"
|
|
|
|
make DESTDIR="$DEPLOY" install
|
|
|
|
chmod 755 $DEPLOY/bin/*
|
|
strip_files $DEPLOY/bin/*
|
|
cat_file_override "dhcpcd.conf" > "$DEPLOY/etc/dhcpcd.conf"
|
|
|
|
rm -rf "$DEPLOY/usr"
|
|
}
|