oandbackup: fix 0.3.0 (21)

Provide only arm support for now, see fdroid/fdroiddata#1366.
This commit is contained in:
relan 2018-09-20 20:36:41 +03:00
parent 98abd63dc0
commit 8d8c3b32c1
2 changed files with 14 additions and 1 deletions

View file

@ -102,7 +102,18 @@ Build:0.2.13,20
Build:0.3.0,21 Build:0.3.0,21
commit=0.3.0 commit=0.3.0
gradle=yes gradle=yes
rm=libs/*.jar srclibs=rustup@1.14.0
build=$$rustup$$/rustup-init.sh -y && \
source $HOME/.cargo/env && \
rustup target add armv7-linux-androideabi && \
$$NDK$$/build/tools/make_standalone_toolchain.py --api 18 --install-dir=armv7_toolchain --arch=arm && \
cd oab-utils && \
mkdir .cargo && \
printf "[target.armv7-linux-androideabi]\n linker = \""$(realpath ../armv7_toolchain)"/bin/arm-linux-androideabi-clang\"" > .cargo/config && \
cargo build --release --target armv7-linux-androideabi && \
mkdir -p ../src/main/assets && \
cp -v target/*/release/oab-utils ../src/main/assets
ndk=r17b
Auto Update Mode:Version %v Auto Update Mode:Version %v
Update Check Mode:Tags Update Check Mode:Tags

2
srclibs/rustup.txt Normal file
View file

@ -0,0 +1,2 @@
Repo Type:git
Repo:https://github.com/rust-lang-nursery/rustup.rs