compat-32/util-linux-32/Pkgfile

34 lines
773 B
Plaintext
Raw Normal View History

# Description: Miscellaneous system utilities
2020-08-10 20:05:44 +02:00
# 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
2021-06-06 04:54:41 +02:00
version=2.37
2016-05-10 11:52:09 +02:00
release=1
2017-03-02 12:24:57 +01:00
source=(https://www.kernel.org/pub/linux/utils/${name%-*}/v${version:0:4}/${name%-*}-$version.tar.xz)
build() {
2017-03-02 12:24:57 +01:00
cd ${name%-*}-$version
./configure \
2014-08-20 15:50:06 +02:00
--prefix=/usr \
--libdir=/usr/lib32 \
--disable-nls \
--disable-asciidoc \
--disable-{login,su,sulogin,nologin,runuser} \
--disable-chfn-chsh \
2014-08-20 15:50:06 +02:00
--enable-{write,raw,kill} \
--without-python
2014-08-20 15:50:06 +02:00
make
make DESTDIR=$PKG install
2014-08-20 15:50:06 +02:00
rm -r \
$PKG/{bin,sbin} \
$PKG/usr/{bin,sbin,include} \
2014-08-20 15:50:06 +02:00
$PKG//usr/share/{bash-completion,doc}
rmdir $PKG/usr/share
}