57 lines
1.4 KiB
Bash
57 lines
1.4 KiB
Bash
#!/usr/bin/env bash
|
|
name='util-linux'
|
|
release='5'
|
|
version='2.41'
|
|
_version='2.41'
|
|
url='https://en.wikipedia.org/wiki/Util-linux'
|
|
description='Various useful Linux utilities'
|
|
email='kurth4cker@tutanota.com'
|
|
maintainer='kurth4cker'
|
|
license=('GPLv3' 'GPLv2' 'LPGL-2.1' 'BSD-4' 'MIT')
|
|
source=("https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v${_version}/util-linux-${version}.tar.gz")
|
|
depends=(libcap-ng)
|
|
sha256sums=('c014b5861695b603d0be2ad1e6f10d5838b9d7859e1dd72d01504556817d8a87')
|
|
arch=('x86_64')
|
|
group=(sys.apps)
|
|
uses_extra=(python udev)
|
|
python_depends=(python)
|
|
udev_depends=(eudev)
|
|
|
|
cd $name-$version
|
|
|
|
export CFLAGS="$CFLAGS -D_PATH_LOGIN=\\\"/usr/bin/login\\\""
|
|
export CXXFLAGS="$CXXFLAGS -D_PATH_LOGIN=\\\"/usr/bin/login\\\""
|
|
|
|
setup(){
|
|
autoreconf -fvi
|
|
./configure --prefix=/usr \
|
|
--libdir=/usr/lib64 \
|
|
--bindir=/usr/bin \
|
|
--enable-shared \
|
|
--enable-static \
|
|
--disable-su \
|
|
--disable-runuser \
|
|
--disable-chfn-chsh \
|
|
--disable-login \
|
|
--disable-sulogin \
|
|
--disable-makeinstall-chown \
|
|
--disable-makeinstall-setuid \
|
|
--disable-pylibmount \
|
|
--disable-raw \
|
|
--without-systemd \
|
|
--without-libuser \
|
|
--without-utempter \
|
|
--without-econf \
|
|
$(use_opt python --with-python --without-python) \
|
|
$(use_opt udev --with-udev --without-udev)
|
|
}
|
|
|
|
build(){
|
|
make $jobs
|
|
}
|
|
|
|
package(){
|
|
make install $jobs
|
|
}
|
|
|