smlinux/base/util-linux/smbuild
PktSurf 9d657e0a1d Upgraded base/perl to 5.38.0
Renamed .SMBuild files to smbuild for simplicity
Added musl-fts, musl-obstack, glslang, python-glad, libptytty, libmilter, elfutils and fuse to base section build list
Discarded fuse2 and fuse3 from base section
Temporarily discarded slapt-get, syslinux, p7zip, acpid, libelf-compat, gnu-eif, libtirpc, mozilla-nss,
lua53, qpdf, kernel-source and signify from base section build list
Disabled nls and made amends to base/e2fsprogs
Upgraded base/git to 2.46.2
Upgraded extra/gnumeric to 1.12.57
Disabled nls in base/gnutls, extra/dia
Disabled a patch and made amends in base/llvm
Fixed configure.local file in base/mandoc
Upgraded base/rust to 1.79
Fixed a ton of build files to use build prefix as /usr and miscellaneous changes
Discarded extra/bluez,blueman,scrcpy,adafruit-io
Added tomb to extra
Added new build option to extra/libass
Upgraded extra/mpv to 0.37.0
Disabled tests in gtk/gdk-pixbuf
Upgraded gtk/goffice to 0.10.57
Added gtk-doc to gtk section
Fixed build options in gtk/gtk2
Added new patches to gtk/gtk3
Added gtksourceview to gtk section
Added vulkan-headers to xorg section
Upgraded xorg/mesa to 23.1.9
Added libplacebo to xorg section
Fixed build stuff in xorg/glew
2024-10-29 20:25:20 +05:30

60 lines
1.8 KiB
Bash

# Maintainer: PktSurf <smlinux@pktsurf.in>
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
"