milis/talimatname/temel/util-linux/talimat

49 lines
1.1 KiB
Plaintext

# Description: System utilities for handling file systems consoles partitions and messages.
# URL: http://freshmeat.net/projects/util-linux/
# Maintainer: Karel Zak kzak at redhat dot com
# Packager: tnut at nutyx dot org
name=util-linux
version=2.27.1
release=1
source=(http://www.kernel.org/pub/linux/utils/util-linux/v${version:0:4}/util-linux-$version.tar.xz
)
PKGMK_GROUPS=(devel doc man)
build()
{
cd util-linux-$version
mkdir -pv $PKG/var/lib/hwclock
./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
--docdir=/usr/share/doc/$name-$version \
--disable-chfn-chsh \
--disable-login \
--disable-nologin \
--disable-su \
--disable-setpriv \
--disable-runuser \
--disable-pylibmount \
--disable-static \
--without-python \
--without-systemd \
--without-systemdsystemunitdir
make
make DESTDIR=$PKG install
mv $PKG/usr/bin/* $PKG/bin/
rm -r $PKG/usr/bin
mv $PKG/usr/sbin/* $PKG/sbin/
rm -r $PKG/usr/sbin
}
devel()
{
cd $PKG
bsdtar -cf \
$PKGMK_PACKAGE_DIR/${name}.devel#$version-`uname -m`.$PKGMK_PACKAGE_EXT \
usr/include usr/lib usr/share/bash-completion
rm -r usr/{include,lib,share/bash-completion}
}