diff --git a/conf/armv7.src b/conf/armv7_jessie.src similarity index 56% rename from conf/armv7.src rename to conf/armv7_jessie.src index 7158f88..ff97db1 100644 --- a/conf/armv7.src +++ b/conf/armv7_jessie.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/Josue-T/synapse_python_build/releases/download/v0.30.0/matrix-synapse_0.30.0-bin1_armv7l.tar.gz -SOURCE_SUM=ab2cfd893621fc6e7a416af348654b23337639b9654bc2cfb4a19525260f64f3 +SOURCE_URL=https://github.com/YunoHost-Apps/synapse_python_build/releases/download/v0.30.0/matrix-synapse_0.30.0-jessie-bin1_armv7l.tar.gz +SOURCE_SUM=4262acb4ff50f743f3766a63771503cbb609e7348a45cb1575c7f9f8ddb9908f # (Optional) Program to check the integrity (sha256sum, md5sum...) # default: sha256 SOURCE_SUM_PRG=sha256sum diff --git a/conf/armv7_stretch.src b/conf/armv7_stretch.src new file mode 100644 index 0000000..cd896ed --- /dev/null +++ b/conf/armv7_stretch.src @@ -0,0 +1,11 @@ +SOURCE_URL=https://github.com/YunoHost-Apps/synapse_python_build/releases/download/v0.30.0/matrix-synapse_0.30.0-stretch-bin1_armv7l.tar.gz +SOURCE_SUM=4860a97063c1108672d3ee6845a2c2de1cf646d674a4480315565f2dd5443e34 +# (Optional) Program to check the integrity (sha256sum, md5sum...) +# default: sha256 +SOURCE_SUM_PRG=sha256sum +# (Optional) Archive format +# default: tar.gz +SOURCE_FORMAT=tar.gz +# (Optional) Put false if sources are directly in the archive root +# default: true +SOURCE_IN_SUBDIR=true diff --git a/scripts/install b/scripts/install index 1bde217..9700d88 100644 --- a/scripts/install +++ b/scripts/install @@ -142,7 +142,12 @@ mkdir -p $final_path # For any update do it in all files if [ -n "$(uname -m | grep arm)" ] then - ynh_setup_source $final_path/ "armv7" + if [ "$(lsb_release --codename --short)" == "jessie" ] + then + ynh_setup_source $final_path/ "armv7_jessie" + else + ynh_setup_source $final_path/ "armv7_stretch" + fi else # Install virtualenv if it don't exist test -e $final_path/bin || virtualenv -p python2.7 $final_path diff --git a/scripts/upgrade b/scripts/upgrade index 7d44a23..de3bc70 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -82,7 +82,12 @@ fi if [ -n "$(uname -m | grep arm)" ] then - ynh_setup_source $final_path/ "armv7" + if [ "$(lsb_release --codename --short)" == "jessie" ] + then + ynh_setup_source $final_path/ "armv7_jessie" + else + ynh_setup_source $final_path/ "armv7_stretch" + fi else # Install virtualenv if it don't exist test -e $final_path/bin || virtualenv -p python2.7 $final_path