3.71. procps-ng-3.3.17
#!/bin/sh # Copyright © 1999-2022 Gerard Beekmans # Copyright © 2017-2022 Random Crew # Distributed under the terms of MIT License.
Additional source handling
src_postfetch()
{
mv ${WORKDIR}/procps-${PV} ${S}
cd ${S}
}
Configuration
src_config()
{
./configure \
--prefix=${PREFIX} \
--docdir=${PREFIX}/share/doc/${P} \
--disable-static \
--disable-kill \
$(ause_enable 'rootprefix' "--exec-prefix=") \
$(ause_enable 'rootprefix' "--libdir=${PREFIX}/lib")
}
Compilation
src_compile()
{
make ${MAKEOPTS}
}
Installation
Dataword rootprefix means that the project uses root directory / along with /usr and several essential packages are installed to root directory. When the system is merged to /usr, this word is absent in configuration.
The string with ause command performs the block after in case of presence of rootprefix.
src_install()
{
make install ${MAKEOPTS} DESTDIR=${D}
if ause 'rootprefix' ; then
mkdir -p ${D}/lib/
mv ${D}${PREFIX}/lib/libprocps.so.* ${D}/lib/
ln -sf ../../lib/$(readlink ${D}${PREFIX}/lib/libprocps.so) \
${D}${PREFIX}/lib/libprocps.so
fi
}
Unit testing
src_check()
{
make check
}
Build code
Other files
Links
- url.lfs: https://linuxfromscratch.org/lfs/view/11.1/chapter08/procps-ng.html
- url.lfs.stage1: