64 |
{ |
{ |
65 |
local libs="$@" |
local libs="$@" |
66 |
|
|
67 |
# cleanup, only keep the libs, everything else get provided by the dev-package |
# run zapmost only if the directories exists, which fixes empy libvtv issues |
68 |
zapmost ${BINDIR}/usr/$(mlibdir) "${libs}" || die |
if [[ -d ${BINDIR}/usr/$(mlibdir) ]] |
69 |
|
then |
70 |
|
# cleanup, only keep the libs, everything else get provided by the dev-package |
71 |
|
zapmost ${BINDIR}/usr/$(mlibdir) "${libs}" || die |
72 |
|
fi |
73 |
# multilib as well |
# multilib as well |
74 |
if [[ $(mlibdir) != lib ]] && [[ -d ${BINDIR}/usr/lib ]] |
if [[ $(mlibdir) != lib ]] && [[ -d ${BINDIR}/usr/lib ]] |
75 |
then |
then |
88 |
# cleanup, the solibs are provided by the non-dev package |
# cleanup, the solibs are provided by the non-dev package |
89 |
for i in ${libs} |
for i in ${libs} |
90 |
do |
do |
91 |
rm ${BINDIR}/usr/$(mlibdir)/${i} || die |
# run cleanup only if the directories exists, which fixes empy libvtv issues |
92 |
|
if [[ -d ${BINDIR}/usr/$(mlibdir) ]] |
93 |
|
then |
94 |
|
rm ${BINDIR}/usr/$(mlibdir)/${i} || die |
95 |
|
fi |
96 |
# multilib as well |
# multilib as well |
97 |
if [[ $(mlibdir) != lib ]] && [[ -d ${BINDIR}/usr/lib ]] |
if [[ $(mlibdir) != lib ]] && [[ -d ${BINDIR}/usr/lib ]] |
98 |
then |
then |