jre: fix mozilla plugin and linker config paths.

This commit is contained in:
davehome 2011-10-22 11:29:53 +00:00
parent 62a1f19e03
commit 84c7ad1cad
1 changed files with 10 additions and 2 deletions

View File

@ -88,11 +88,19 @@ do_install()
# Install mozilla compatible plugin.
vmkdir usr/lib/mozilla/plugins
if [ "${xbps_machine}" = "x86_64" ]; then
_arch=amd64
else
_arch=i386
fi
cd ${DESTDIR}/usr/lib/mozilla/plugins && \
ln -sf ../../../../opt/java/jre/lib/amd64/libnpjp2.so .
ln -sf ../../../../opt/java/jre/lib/${_arch}/libnpjp2.so .
# linker's config
vmkdir etc/ld.so.conf.d
echo "/opt/java/jre/lib/amd64" > \
echo "/opt/java/jre/lib/${_arch}" > \
${DESTDIR}/etc/ld.so.conf.d/${pkgname}.conf
}