1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-23 03:29:46 +01:00
build/pkg/util-linux/build
David Oberhollenzer 7204b9dd75 Cleanup: strip executables in mk.sh
Automagically strip all executables (recursively for subdirectories in lib
and bin) inside the mk.sh build loop.

This removes the necessity in the build scripts to strip the files. This also
allows us to remove the error prone install-strip target from the build
scripts.

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-06-17 20:22:10 +02:00

53 lines
No EOL
1.5 KiB
Text
Executable file

VERSION="2.32"
SRCDIR="util-linux-${VERSION}"
TARBALL="${SRCDIR}.tar.xz"
URL="https://www.kernel.org/pub/linux/utils/util-linux/v$VERSION/"
SHA256SUM="6c7397abc764e32e8159c2e96042874a190303e77adceb4ac5bd502a272a4734"
DEPENDS="bash ncurses zlib"
prepare() {
apply_patches
}
build() {
$1/configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
--prefix="" --host="$TARGET" --sbindir="/bin" \
--with-bashcompletiondir="/share/bash-completion/completions" \
--disable-pylibmount --disable-static --without-python \
--without-systemd --without-systemdsystemunitdir \
--disable-cal --disable-chmem --disable-fdformat \
--disable-fsck --disable-logger --disable-mesg \
--disable-minix --disable-bfs --disable-more \
--disable-nologin --disable-nsenter --disable-pivot_root \
--disable-raw --disable-sulogin --disable-switch_root \
--disable-ul --disable-unshare --disable-utmpdump \
--disable-uuidd --disable-wall --disable-zramctl \
--disable-makeinstall-chown \
--disable-makeinstall-setuid \
--enable-agetty
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local DEPLOY="$2"
local UTIL
mkdir -p "$DEPLOY/var/lib/hwclock"
unfuck_libtool
make DESTDIR="$DEPLOY" install
if [ -e "$DEPLOY/sbin" ]; then
mv ${DEPLOY}/sbin/* ${DEPLOY}/bin
fi
cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY"
}
check_update() {
curl --silent -L "https://www.kernel.org/pub/linux/utils/util-linux" | \
grep -o "v[0-9.]*/" | grep -o "[0-9.]*" | \
verson_find_greatest "$VERSION"
}