1.27. tmp libcap-2.42
This package is not added to temporary system at stage1 in original LFS.
We add it for another essential build tools.
#!/bin/sh # Copyright © 1999-2022 Gerard Beekmans # Copyright © 2017-2022 Random Crew # Distributed under the terms of MIT License.
Configuration
src_config()
{
sed -i '/install -m.*STACAPLIBNAME/d' libcap/Makefile
}
Compilation
src_compile()
{
make ${MAKEOPTS} lib=lib
}
Installation
src_install()
{
make ${MAKEOPTS} lib=lib PKGCONFIGDIR=${PREFIX}/lib/pkgconfig DESTDIR=${D} install
chmod 755 ${D}/lib/libcap.so.${PV}
rm ${D}/lib/libcap.so
mkdir -p ${D}${PREFIX}/lib
ln -sf ../../lib/libcap.so.2 ${D}${PREFIX}/lib/libcap.so
}
Unit testing
src_check()
{
make test
}
Links