compat-32/util-linux-32/Pkgfile

33 lines
764 B
Plaintext
Raw Normal View History

# Description: Miscellaneous system utilities
2017-03-02 12:24:57 +01:00
# URL: https://userweb.kernel.org/~kzak/util-linux/
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
2016-11-13 02:58:34 +01:00
# Depends on: eudev-32 readline-32 zlib-32
name=util-linux-32
2017-10-23 10:34:23 +02:00
version=2.31
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-{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} \
2016-09-04 10:01:54 +02:00
$PKG/usr/{bin,sbin,share/man,include} \
2014-08-20 15:50:06 +02:00
$PKG//usr/share/{bash-completion,doc}
rmdir $PKG/usr/share
}