Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Symlinking is broken for me (cannot find `/opt/java/bin`, if no version of jdk is installed already).
diff --git a/PKGBUILD b/PKGBUILD
index bc479d2..8ddd0bd 100644
@@ -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/ "$pkgdir"/usr/lib/mozilla/plugins/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment