forked from ports/compat-32
35 lines
792 B
Plaintext
35 lines
792 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: eudev-32 readline-32 zlib-32
|
|
|
|
name=util-linux-32
|
|
version=2.39.2
|
|
release=1
|
|
source=(https://www.kernel.org/pub/linux/utils/${name%-*}/v${version:0:4}/${name%-*}-$version.tar.xz)
|
|
|
|
build() {
|
|
cd ${name%-*}-$version
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--libdir=/usr/lib32 \
|
|
--disable-nls \
|
|
--disable-asciidoc \
|
|
--disable-{login,su,sulogin,nologin,runuser,raw} \
|
|
--disable-chfn-chsh \
|
|
--enable-{write,kill} \
|
|
--without-python
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -r \
|
|
$PKG/{bin,sbin} \
|
|
$PKG/usr/{bin,sbin,include} \
|
|
$PKG//usr/share/{bash-completion,doc}
|
|
|
|
rm -rf $PKG/usr/share/man
|
|
rmdir $PKG/usr/share
|
|
}
|