forked from ports/compat-32
37 lines
1000 B
Plaintext
37 lines
1000 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
|
|
release=1
|
|
source=(https://github.com/util-linux/util-linux/archive/v$version/util-linux-$version.tar.gz
|
|
syscalls.patch)
|
|
|
|
build() {
|
|
patch -Np1 -d util-linux-$version -i $SRC/syscalls.patch
|
|
|
|
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 nls=disabled
|
|
meson compile -C build -j ${JOBS:-1}
|
|
DESTDIR=$PKG meson install -C build
|
|
|
|
rm -rf $PKG/{sbin,usr/{bin,include,share}}
|
|
}
|