# Maintainer: PktSurf app=util-linux version=2.33 build=1sml 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() { LDFLAGS="-lcurses -lterminfo" \ ./configure \ --prefix=/usr --bindir=/usr/bin --sbindir=/usr/bin --mandir=/usr/share/man \ --disable-fsck --includedir=/usr/include --libdir=/usr/lib \ --with-bashcompletiondir=/usr/share/bash-completion/completions \ --datarootdir=/usr/share \ --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 --disable-nls sed -i 's,/sbin,/bin,' config.status ./config.status make make install DESTDIR=$pkg # Replace dynamically-linked mount with statically-linked mount ( cd $pkg/usr/bin mv mount.static mount mv umount.static umount ) cp COPYING $pkgdocs/ mkfinalpkg } sha512sums=" 41c95705c06e8794140091c41e62a3eb7c6a62c86bb2415dad53a19ed26f9ff849fb400cb87d5650ff6ff7b89d170d3139b04931f8c4b5c7257b724b61fa7da4 util-linux-2.33.tar.lz ab3ab93642f6feaaba4d1125d5f213d7aa322cfa3396553b418a738a7f9bcdffd20d6c5ba272a6e72a52ec10349d21400791a47a9c5c1c879c311435b8db79fa cal.patch "