smlinux/base/util-linux/util-linux.SMBuild
PktSurf 03da9ec93f Discarded '--disable-nls' and similar build options in several build files to allow building of translation files
Added '--docdir' build option to extra/xarchiver, gtk/libcanberra, net/{tor,x2x} build files
Updated net/cgit tarball checksum
Switched to cmake build system in net/weechat
Discarded 'v' verbosity argument used for extracting net/x2x tarball and its doinst.sh
Fixed hardcoded doc directory name in xorg/jasper
2023-04-01 10:28:44 +05:30

62 lines
1.7 KiB
Text
Executable file

app=util-linux
version=2.33
build=4sml
homepage="https://github.com/karelzak/util-linux"
download="https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v$version/util-linux-$version.tar.xz"
desc="A huge collection of essential utilities"
requires="readline zlib xz kmod eudev"
preservestaticlibs=1
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
# Thank you sabotage linux
applypatch $srcdir/cal.patch
}
build() {
CFLAGS="$CFLAGS -include sys/sysmacros.h" \
LDFLAGS="-lcurses -lterminfo" \
./configure \
--prefix="" --sbindir=/bin --libdir=/lib \
--includedir=/include \
--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
# 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
"