diff --git a/srcpkgs/jre/template b/srcpkgs/jre/template index 5b7ae31bfe8..e5245dac85d 100644 --- a/srcpkgs/jre/template +++ b/srcpkgs/jre/template @@ -55,19 +55,19 @@ do_install() rm -rf ${DESTDIR}/usr/share/java/jre/lib/desktop rm -rf ${DESTDIR}/usr/share/java/jre/lib/locale - # Remove shlib linking to old ffmpeg libraries. - rm -f ${DESTDIR}/usr/share/java/jre/lib/amd64/fxavcodecplugin-52.so - # Install mozilla compatible plugin. vmkdir usr/lib/mozilla/plugins - if [ "${XBPS_MACHINE}" = "x86_64" ]; then _arch=amd64 else _arch=i386 fi + # Remove shlib linking to old ffmpeg libraries. + rm -f ${DESTDIR}/usr/share/java/jre/lib/${_arch}/fxavcodecplugin-52.so + + cd ${DESTDIR}/usr/lib/mozilla/plugins && \ ln -sf ../../../share/java/jre/lib/${_arch}/libnpjp2.so .