mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Add specific prebuild package for stretch/jessie
This commit is contained in:
parent
493c97a30b
commit
2da344000b
4 changed files with 25 additions and 4 deletions
|
@ -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
|
11
conf/armv7_stretch.src
Normal file
11
conf/armv7_stretch.src
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue