aboutsummaryrefslogtreecommitdiff
path: root/doc/install/Android.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-09-22 13:03:34 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-09-22 13:03:34 -0400
commit272a08e3773f56a07ef9163e191a6a76cd983d69 (patch)
tree46a4915d6a49f4a78afead903625ced2e8b49162 /doc/install/Android.mdwn
parentf159e8bccd823a9125f3134fba5a5dc3c7dd7df7 (diff)
new buildchroot script to automate android chroot setup
Diffstat (limited to 'doc/install/Android.mdwn')
-rw-r--r--doc/install/Android.mdwn20
1 files changed, 12 insertions, 8 deletions
diff --git a/doc/install/Android.mdwn b/doc/install/Android.mdwn
index da5f6a645..0b7fa25c7 100644
--- a/doc/install/Android.mdwn
+++ b/doc/install/Android.mdwn
@@ -19,14 +19,18 @@ of Bath CS department.
## building it yourself
-git-annex can be built for Android, with `make android`. It's not an easy
-process:
-
-* First, install <https://github.com/joeyh/ghc-android>.
- The easiest way is to follow the instructions at the end of its README.md
- to install in a Debian stable chroot.
-* In git-annex's `standalone/android/` directory, run
- `./install-haskell-packages native && ./install-haskell-packages cross`
+git-annex can be built from source for Android.
+
+1. Run `standalone/android/buildchroot` as root (requires debootstrap).
+ This builds a chroot with an `androidbuilder` user.
+ The rest of the build will run in this chroot as that user.
+2. Then run `standalone/android/install-haskell-packages`
+ Note that this will break from time to time as new versions of packages
+ are released, and the patches it applies have to be updated when
+ this happens.
+3. Finally, once the chroot is set up, you can build an Android binary
+ with `make android`, and `make androidapp` will build the complete APK.
+
* You will need to have the Android SDK and NDK installed; see
`standalone/android/Makefile` to configure the paths to them. You'll also
need ant, and the JDK.