wownero
/
wownerujo
Archived
4
0
Fork 0

add f-droid metadata

openssl-1.1.0
fuwa 6 years ago
parent 5317f4773e
commit e05837f1a4

2
.gitignore vendored

@ -11,3 +11,5 @@ opt
vendor
external-libs/monero
tmp
builder

@ -0,0 +1,22 @@
apk_path := vendor/fdroiddata/unsigned
app_id := com.wownero.wownerujo
.PHONY: f-droid-sign f-droid-clean build-external-libs
all: build-external-libs
f-droid-sign:
zipalign -v -p 4 \
$(apk_path)/$(app_id)_${app_version}.apk \
$(apk_path)/$(app_id)_${app_version}-aligned.apk
apksigner sign --ks ${release_key} \
--out $(apk_path)/$(app_id)_${app_version}-release.apk \
$(apk_path)/$(app_id)_${app_version}-aligned.apk
f-droid-clean:
@rm -f $(apk_path)/$(app_id)_${app_version}-aligned.apk
@rm -f $(apk_path)/$(app_id)_${app_version}-release.apk
build-external-libs:
script/build-external-libs/all.sh

@ -26,5 +26,5 @@ export $ANDROID_NDK_ROOT=~/Android/Sdk/ndk-bundle
## Build
```Shell
./script/build-external-libs/all.sh
make
```

@ -0,0 +1,25 @@
Categories:
- Money
License: Apache-2.0
WebSite: https://wownero.org
SourceCode: https://github.com/fuwa0529/wownerujo/
IssueTracker: https://github.com/fuwa0529/wownerujo//issues
RepoType: git
Repo: https://github.com/fuwa0529/wownerujo/
Builds:
- versionName: '1.5.10.4 '
versionCode: 1040
commit: 340ac0
timeout: 14400
sudo: apt install -y g++ build-essential tofrodos
gradle:
- yes
output: app/build/outputs/apk/release/wownerujo-*_universal.apk
build: |-
ANDROID_NDK_ROOT=$$NDK$$ make
ndk: r17b
AutoUpdateMode: None
UpdateCheckMode: Tags

@ -1,4 +1,6 @@
#!/bin/sh
#!/usr/bin/env bash
set -e
# make sure $ANDROID_NDK_ROOT is properly set
# for example: export $ANDROID_NDK_ROOT=~/Android/Sdk/ndk-bundle
@ -8,22 +10,6 @@ source script/build-external-libs/env.sh
echo "ANDROID_NDK_ROOT: " $ANDROID_NDK_ROOT
echo "EXTERNAL_LIBS_BUILD_ROOT: " $EXTERNAL_LIBS_BUILD_ROOT
script/build-external-libs/prep-toolchain.sh
script/build-external-libs/build-openssl.sh
script/build-external-libs/post-build-openssl.sh
script/build-external-libs/pre-build-boost.sh
script/build-external-libs/build-boost.sh
script/build-external-libs/build-wownero.sh
script/build-external-libs/collect.sh
script/build-external-libs/pre-build.sh
script/build-external-libs/build.sh

@ -1,13 +1,34 @@
#!/bin/sh
#!/usr/bin/env bash
set -e
build_root=$EXTERNAL_LIBS_BUILD_ROOT
cd $build_root/boost_1_58_0
PATH=$build_root/tool/arm/arm-linux-androideabi/bin:$build_root/tool/arm/bin:$PATH ./b2 --build-type=minimal link=static runtime-link=static --with-chrono --with-date_time --with-filesystem --with-program_options --with-regex --with-serialization --with-system --with-thread --build-dir=android-arm --prefix=$build_root/build/boost/arm --includedir=$build_root/build/boost/include toolset=clang threading=multi threadapi=pthread target-os=android install
# ./bootstrap.sh --with-toolset=clang
./bootstrap.sh
args="--build-type=minimal link=static runtime-link=static --with-chrono \
--with-date_time --with-filesystem --with-program_options --with-regex \
--with-serialization --with-system --with-thread \
--includedir=$build_root/build/boost/include \
--toolset=clang threading=multi threadapi=pthread target-os=android \
install"
echo $args
PATH=$build_root/tool/arm/arm-linux-androideabi/bin:$build_root/tool/arm/bin:$PATH \
./b2 --build-dir=android-arm --prefix=$build_root/build/boost/arm $args
ln -sf ../include $build_root/build/boost/arm
PATH=$build_root/tool/arm64/aarch64-linux-android/bin:$build_root/tool/arm64/bin:$PATH ./b2 --build-type=minimal link=static runtime-link=static --with-chrono --with-date_time --with-filesystem --with-program_options --with-regex --with-serialization --with-system --with-thread --build-dir=android-arm64 --prefix=$build_root/build/boost/arm64 --includedir=$build_root/build/boost/include toolset=clang threading=multi threadapi=pthread target-os=android install
PATH=$build_root/tool/arm64/aarch64-linux-androideabi/bin:$build_root/tool/arm64/bin:$PATH \
./b2 --build-dir=android-arm64 --prefix=$build_root/build/boost/arm64 $args
ln -sf ../include $build_root/build/boost/arm64
PATH=$build_root/tool/x86/i686-linux-android/bin:$build_root/tool/x86/bin:$PATH ./b2 --build-type=minimal link=static runtime-link=static --with-chrono --with-date_time --with-filesystem --with-program_options --with-regex --with-serialization --with-system --with-thread --build-dir=android-x86 --prefix=$build_root/build/boost/x86 --includedir=$build_root/build/boost/include toolset=clang threading=multi threadapi=pthread target-os=android install
PATH=$build_root/tool/x86/i686-linux-android/bin:$build_root/tool/x86/bin:$PATH \
./b2 --build-dir=android-x86--prefix=$build_root/build/boost/x86 $args
ln -sf ../include $build_root/build/boost/x86
PATH=$build_root/tool/x86_64/x86_64-linux-android/bin:$build_root/tool/x86_64/bin:$PATH ./b2 --build-type=minimal link=static runtime-link=static --with-chrono --with-date_time --with-filesystem --with-program_options --with-regex --with-serialization --with-system --with-thread --build-dir=android-x86_64 --prefix=$build_root/build/boost/x86_64 --includedir=$build_root/build/boost/include toolset=clang threading=multi threadapi=pthread target-os=android install
PATH=$build_root/tool/x86_64/x86_64-linux-android/bin:$build_root/tool/x86_64/bin:$PATH \
./b2 --build-dir=android-x86_64 --prefix=$build_root/build/boost/x86_64 $args
ln -sf ../include $build_root/build/boost/x86_64

@ -1,14 +0,0 @@
#!/bin/sh
cd /opt/android
git clone --recursive -b release-v0.12.1-monerujo-v1.5.4 https://github.com/m2049r/monero.git
cd monero
sed -i 's/-Werror/-Wall/g' CMakeLists.txt
sed -i \
's@OPENSSL_ROOT_DIR=/opt/android/build/openssl/$arch -D@OPENSSL_ROOT_DIR=/opt/android/build/openssl/$arch -D OPENSSL_INCLUDE_DIR=/opt/android/build/openssl/$arch/include -D@g' \
build-all-arch.sh
./build-all-arch.sh

@ -1,9 +1,8 @@
#!/bin/sh
#!/usr/bin/env bash
cd $EXTERNAL_LIBS_BUILD_ROOT
set -e
git clone https://github.com/m2049r/android-openssl.git
wget https://github.com/openssl/openssl/archive/OpenSSL_1_0_2l.tar.gz
cd $EXTERNAL_LIBS_BUILD_ROOT
cd android-openssl
tar xfz ../OpenSSL_1_0_2l.tar.gz
./build-all-arch.sh

@ -1,9 +1,8 @@
#!/bin/sh
#!/usr/bin/env bash
cd $EXTERNAL_LIBS_BUILD_ROOT
git clone --recursive -b mobile https://github.com/fuwa0529/wownero
set -e
cd $EXTERNAL_LIBS_BUILD_ROOT
cd wownero
./build-all-arch.sh

@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -e
source script/build-external-libs/env.sh
script/build-external-libs/prep-toolchain.sh
script/build-external-libs/build-openssl.sh
script/build-external-libs/post-build-openssl.sh
script/build-external-libs/build-boost.sh
script/build-external-libs/build-wownero.sh
script/build-external-libs/collect.sh

@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -e
source script/build-external-libs/env.sh
build_root=$EXTERNAL_LIBS_BUILD_ROOT
rm -rf $build_root
mkdir -p $build_root

@ -1,4 +1,6 @@
#!/bin/sh
#!/usr/bin/env bash
set -e
cd external-libs

@ -1,11 +1,10 @@
#!/bin/sh
DEFAULT_ANDROID_NDK_ROOT=~/Android/Sdk/ndk-bundle
DEFAULT_ANDROID_NDK_ROOT=~/Android/Sdk/ndk-bundle/
ANDROID_NDK_ROOT="${ANDROID_NDK_ROOT:-${DEFAULT_ANDROID_NDK_ROOT}}"
export ANDROID_NDK_ROOT
export ANDROID_NDK_ROOT=`realpath $ANDROID_NDK_ROOT`
DEFAULT_EXTERNAL_LIBS_BUILD_ROOT=`pwd`/build/external-libs
DEFAULT_EXTERNAL_LIBS_BUILD_ROOT=`pwd`/build/external-libs/
EXTERNAL_LIBS_BUILD_ROOT="${EXTERNAL_LIBS_BUILD_ROOT:-${DEFAULT_EXTERNAL_LIBS_BUILD_ROOT}}"
export EXTERNAL_LIBS_BUILD_ROOT
export EXTERNAL_LIBS_BUILD_ROOT=${EXTERNAL_LIBS_BUILD_ROOT%/}

@ -1,4 +1,6 @@
#!/bin/sh
#!/usr/bin/env bash
set -e
build_root=$EXTERNAL_LIBS_BUILD_ROOT

@ -1,7 +1,7 @@
#!/bin/sh
#!/usr/bin/env bash
set -e
cd $EXTERNAL_LIBS_BUILD_ROOT
wget https://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.gz/download -O boost_1_58_0.tar.gz
tar xfz boost_1_58_0.tar.gz
cd boost_1_58_0
./bootstrap.sh

@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -e
cd $EXTERNAL_LIBS_BUILD_ROOT
version="93e9e6"
git clone https://github.com/fuwa0529/android-openssl
wget https://github.com/openssl/openssl/archive/OpenSSL_1_0_2l.tar.gz
cd android-openssl
git checkout $version
tar xfz ../OpenSSL_1_0_2l.tar.gz

@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -e
cd $EXTERNAL_LIBS_BUILD_ROOT
version="80f7f1"
git clone -b mobile https://github.com/fuwa0529/wownero
cd wownero
git checkout $version
git submodule init && git submodule update

@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -e
source script/build-external-libs/env.sh
script/build-external-libs/clean.sh
script/build-external-libs/pre-build-openssl.sh
script/build-external-libs/pre-build-boost.sh
script/build-external-libs/pre-build-wownero.sh

@ -1,12 +1,11 @@
#!/bin/sh
#!/usr/bin/env bash
set -e
echo "preparing $EXTERNAL_LIBS_BUILD_ROOT"
build_root=$EXTERNAL_LIBS_BUILD_ROOT
rm -rf $build_root
mkdir -p $build_root
PATH=$ANDROID_NDK_ROOT/build/tools/:$PATH
echo "installing arm"

@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -e
rm -rf external-libs
curl -O -L https://github.com/fuwa0529/wownerujo/releases/download/v1.5.10.4/external-libs.tgz
tar zxfv external-libs.tgz
rm external-libs.tgz

@ -16,7 +16,7 @@ let
gnome3.gvfs
glib
gnome3.gconf
gnome3.libsecret
# gnome3.libsecret
gzip
fontconfig
freetype
@ -59,11 +59,14 @@ with nixpkgs;
wget
perl
gnumake
binutils
gcc
doxygen
graphviz
pkgconfig
androidsdk
vim
]
++ android-studio-deps
@ -78,13 +81,13 @@ with nixpkgs;
export ANDROID_NDK_ROOT=$ANDROID_HOME/ndk-bundle
PATH=~/sdk/android/android-studio/bin/:$PATH
# PATH=$ANDROID_NDK_ROOT/build/tools/:$PATH
PATH=$ANDROID_NDK_ROOT/build/tools/:$PATH
export PATH
export _JAVA_AWT_WM_NONREPARENTING=1
mkdir -p opt/android
ln -s `pwd`/opt /opt
export app_version=1040
export release_key=~/.android/fuwa-release-key.jks
exec zsh
''