make new google-android-emulator package
-
base this package off of google-android-ndk-installer -
install into /usr/lib/android-sdk/emulator -
package should be for amd64 only, since the Google binaries are -
provide startup script in /usr/bin/emulatorthat ensures it finds all the libs, which are referenced using relative paths.
A quick idea of the script:
#!/bin/sh -e
if [ -z "$ANDROID_HOME" ]; then
export ANDROID_HOME=/usr/lib/android-sdk
fi
export LD_LIBRARY_PATH=$ANDROID_HOME/emulator/lib64:$ANDROID_HOME/emulator/lib64/qt/lib:$LD_LIBRARY_PATH
cd "$ANDROID_HOME/emulator"
./emulator "$@";
Edited by Hans-Christoph Steiner