Use a better method to remove extranious files

This commit is contained in:
Zachary Hall 2024-09-28 16:27:02 -07:00
parent 2d8982888c
commit c6de8d06f0

View file

@ -130,9 +130,9 @@ src_configure() {
# you only need to call it, if you need different behaviour. # you only need to call it, if you need different behaviour.
src_install() { src_install() {
cmake_src_install cmake_src_install
rm -r "${D}/usr/include" for i in "${D}/usr/"{include,lib{,64}/{cmake,pkgconfig}}; do
rm -r "${D}/usr/lib/cmake" [ -e "$i" ] && rm -r "$i"
rm -r "${D}/usr/lib/pkgconfig" done
# You must *personally verify* that this trick doesn't install # You must *personally verify* that this trick doesn't install
# anything outside of DESTDIR; do this by reading and # anything outside of DESTDIR; do this by reading and
# understanding the install part of the Makefiles. # understanding the install part of the Makefiles.