public

Symlinking is broken for me (cannot find `/opt/java/bin`, if no version of jdk is installed already).

  • Download Gist
0001-fix-symlinking-binaries.patch
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
diff --git a/PKGBUILD b/PKGBUILD
index bc479d2..8ddd0bd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -66,7 +66,7 @@ package() {
mv * "$pkgdir"/opt/java/
msg2 "Symlinking the binaries"
- find /opt/java/bin -type f -exec ln -s {} "${pkgdir}"/usr/bin/ \;
+ find ${pkgdir}/opt/java/bin -type f -printf "%f\n" | while read file; do ln -s /opt/java/bin/$file "${pkgdir}"/usr/bin/; done
msg2 "Symlinking the plugin"
ln -s /opt/java/jre/lib/$_arch2/libnpjp2.so "$pkgdir"/usr/lib/mozilla/plugins/
--
1.8.4.2

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.