mirror of
https://github.com/pygos/build.git
synced 2024-06-03 02:38:44 +02:00
David Oberhollenzer
c8d01f966a
Been working on this for too long, don't remember the specifics, will add documentation. Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
45 lines
1 KiB
Plaintext
Executable file
45 lines
1 KiB
Plaintext
Executable file
VERSION="2.33"
|
|
SRCDIR="util-linux-${VERSION}"
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
URL="https://www.kernel.org/pub/linux/utils/util-linux/v$VERSION/"
|
|
SHA256SUM="f261b9d73c35bfeeea04d26941ac47ee1df937bd3b0583e748217c1ea423658a"
|
|
DEPENDS="bash-dev ncurses-dev zlib-dev crt-dev"
|
|
SUBPKG="util-linux util-linux-dev"
|
|
|
|
prepare() {
|
|
apply_patches
|
|
}
|
|
|
|
build() {
|
|
ADJTIME_PATH=/var/lib/hwclock/adjtime \
|
|
run_configure "$1" --disable-pylibmount --without-python \
|
|
--without-systemd --without-systemdsystemunitdir \
|
|
--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/*.{files,desc} "$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"
|
|
} |