Added a version to the Java dependency (apparently required for java-pkg-opt to work)
Use java-pkg_regso to register the xraylib.so library

Not sure why it is installed in /usr/share/ - perhaps it's a Java thing?