2018-11-26 20:52:51 +01:00
|
|
|
VERSION="2.33"
|
2018-01-14 16:37:34 +01:00
|
|
|
SRCDIR="util-linux-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
|
|
URL="https://www.kernel.org/pub/linux/utils/util-linux/v$VERSION/"
|
2018-11-26 20:52:51 +01:00
|
|
|
SHA256SUM="f261b9d73c35bfeeea04d26941ac47ee1df937bd3b0583e748217c1ea423658a"
|
2019-03-30 23:28:30 +01:00
|
|
|
DEPENDS="bash-dev ncurses-dev zlib-dev toolchain"
|
2019-02-27 20:39:06 +01:00
|
|
|
SUBPKG="libblkid libblkid-dev libfdisk libfdisk-dev libmount libmount-dev libsmartcols libsmartcols-dev libuuid libuuid-dev util-linux"
|
2018-01-14 16:37:34 +01:00
|
|
|
|
|
|
|
prepare() {
|
2018-02-09 18:49:17 +01:00
|
|
|
apply_patches
|
2018-01-14 16:37:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2018-09-02 14:19:23 +02:00
|
|
|
ADJTIME_PATH=/var/lib/hwclock/adjtime \
|
|
|
|
run_configure "$1" --disable-pylibmount --without-python \
|
2018-02-16 23:22:04 +01:00
|
|
|
--without-systemd --without-systemdsystemunitdir \
|
|
|
|
--disable-makeinstall-chown \
|
|
|
|
--disable-makeinstall-setuid \
|
2018-05-14 00:03:23 +02:00
|
|
|
--enable-agetty
|
2018-01-14 16:37:34 +01:00
|
|
|
|
|
|
|
make -j $NUMJOBS
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
2019-03-06 10:03:12 +01:00
|
|
|
mkdir -p "$PKGDEPLOYDIR/var/lib/hwclock"
|
2018-01-14 16:37:34 +01:00
|
|
|
|
2018-05-19 21:13:51 +02:00
|
|
|
unfuck_libtool
|
2019-03-06 10:03:12 +01:00
|
|
|
make DESTDIR="$PKGDEPLOYDIR" install
|
2018-01-14 16:37:34 +01:00
|
|
|
|
2019-03-06 10:03:12 +01:00
|
|
|
if [ -e "$PKGDEPLOYDIR/sbin" ]; then
|
|
|
|
mv ${PKGDEPLOYDIR}/sbin/* "$PKGDEPLOYDIR/bin"
|
2018-01-14 16:37:34 +01:00
|
|
|
fi
|
|
|
|
|
2019-03-06 10:03:12 +01:00
|
|
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
|
2018-01-14 16:37:34 +01:00
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
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"
|
2019-02-27 20:39:06 +01:00
|
|
|
}
|