Use a better method to remove extranious files
This commit is contained in:
parent
2d8982888c
commit
c6de8d06f0
1 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue