mirror of
https://github.com/pygos/build.git
synced 2024-11-25 04:20:41 +01:00
David Oberhollenzer
55463cf428
- crt-dev is a dependency of toolchain - basefiles is a dependency of toolchain - libstdc++ is (now also) a dependency of toolchain This commit removes direct build dependencies to the above and replacest them with dependencies to the toolchain package. Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
41 lines
1.1 KiB
Text
Executable file
41 lines
1.1 KiB
Text
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 toolchain"
|
|
SUBPKG="libblkid libblkid-dev libfdisk libfdisk-dev libmount libmount-dev libsmartcols libsmartcols-dev libuuid libuuid-dev util-linux"
|
|
|
|
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() {
|
|
mkdir -p "$PKGDEPLOYDIR/var/lib/hwclock"
|
|
|
|
unfuck_libtool
|
|
make DESTDIR="$PKGDEPLOYDIR" install
|
|
|
|
if [ -e "$PKGDEPLOYDIR/sbin" ]; then
|
|
mv ${PKGDEPLOYDIR}/sbin/* "$PKGDEPLOYDIR/bin"
|
|
fi
|
|
|
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
|
|
}
|
|
|
|
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"
|
|
}
|