diff --git a/srcpkgs/jre/template b/srcpkgs/jre/template index 2ab34c24cc2..a71288bae6c 100644 --- a/srcpkgs/jre/template +++ b/srcpkgs/jre/template @@ -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 }