35 lines
963 B
Plaintext
35 lines
963 B
Plaintext
# Description: Miscellaneous system utilities
|
|
# URL: https://github.com/karelzak/util-linux
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: bzip2-32 eudev-32 sqlite3-32 xz-32 zlib-32
|
|
|
|
name=util-linux-32
|
|
version=2.40.4
|
|
release=1
|
|
source=(https://www.kernel.org/pub/linux/utils/util-linux/v${version:0:4}/util-linux-$version.tar.xz)
|
|
|
|
build() {
|
|
meson setup util-linux-$version build \
|
|
--prefix=/usr \
|
|
--bindir=/usr/bin \
|
|
--sbindir=/sbin \
|
|
--libdir=/usr/lib32 \
|
|
--libexecdir=/usr/lib32 \
|
|
--buildtype=plain \
|
|
--wrap-mode=nodownload \
|
|
--auto-features disabled \
|
|
-D b_lto=false \
|
|
-D b_pie=true \
|
|
-D build-libblkid=enabled \
|
|
-D build-libuuid=enabled \
|
|
-D build-libmount=enabled \
|
|
-D build-libsmartcols=enabled \
|
|
-D build-libfdisk=enabled \
|
|
-D build-python=disabled \
|
|
-D nls=disabled
|
|
meson compile -C build -j ${JOBS:-1}
|
|
DESTDIR=$PKG meson install -C build
|
|
|
|
rm -rf $PKG/{sbin,usr/{bin,include,share}}
|
|
}
|