smlinux/base/util-linux/util-linux.SMBuild
PktSurf 2ac50eee2a Replaced busybox hwclock with util-linux hwclock for more functionality
Upgraded chrony to version 4.2 and fixed its runit build script
Replaced $ARCH variable with $arch to cause gmp and db builds in base srction to build correctly
Fixed descriptions in xcb-util-image and xcb-util-wm in xorg section
Removed drm option in xorg/mesa and added llvm as a dependency
2022-08-01 10:13:41 +05:30

63 lines
1.8 KiB
Text
Executable file

app=util-linux
version=2.33
build=3sml
homepage="https://github.com/karelzak/util-linux"
download="https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.33/util-linux-2.33.tar.xz"
desc="a huge collection of essential utilities"
requires="readline zlib xz kmod eudev"
build() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
# Thank you sabotage linux
applypatch $srcdir/cal.patch
CFLAGS="$CFLAGS -include sys/sysmacros.h" \
LDFLAGS="-lcurses -lterminfo" \
./configure \
--prefix="" --sbindir=/bin --libdir=/lib \
--includedir=/include \
--disable-silent-rules \
--disable-nls --disable-fsck\
--enable-libmount-support-mtab \
--disable-fdformat --disable-switch-root \
--disable-kill --disable-login --disable-sulogin --disable-su\
--disable-more --disable-pg --disable-agetty \
--without-systemd --disable-wdctl --enable-libuuid \
--enable-libblkid --enable-libmount --disable-uuidd \
--enable-static-programs="mount,umount" \
--without-python
sed -i 's,/sbin,/bin,' config.status
./config.status
make
make install DESTDIR=$pkg
# libuuid.la is required by gegl
cp .libs/libuuid.la $pkg/lib/
# Replace dynamically-linked mount with statically-linked mount
(
cd $pkg/bin
mv mount.static mount
mv umount.static umount
)
cp COPYING $pkgdocs/
# rev is provided by busybox which is statically-linked
rm $pkg/bin/rev
mkfinalpkg
}
sha512sums="
41c95705c06e8794140091c41e62a3eb7c6a62c86bb2415dad53a19ed26f9ff849fb400cb87d5650ff6ff7b89d170d3139b04931f8c4b5c7257b724b61fa7da4 util-linux-2.33.tar.lz
ab3ab93642f6feaaba4d1125d5f213d7aa322cfa3396553b418a738a7f9bcdffd20d6c5ba272a6e72a52ec10349d21400791a47a9c5c1c879c311435b8db79fa cal.patch
"