1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/invidious_ynh.git synced 2024-09-03 19:15:55 +02:00
This commit is contained in:
ericgaspar 2021-05-23 09:54:30 +02:00
parent db2d33bb30
commit 01c81ea7e4
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 13 additions and 2 deletions

7
conf/crystal.src Normal file
View file

@ -0,0 +1,7 @@
SOURCE_URL=https://github.com/crystal-lang/crystal/releases/download/0.36.1/crystal_0.36.1-1_amd64.deb
SOURCE_SUM=bac79d5513911fc6ad1cf9d05571132e36a139e7cf0808acee518c57ab1aa563
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=deb
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=crystal_0.36.1-1_amd64.deb
SOURCE_EXTRACT=false

View file

@ -5,7 +5,7 @@
#=================================================
# dependencies used by the app
pkg_dependencies="crystal apt-transport-https libssl-dev libxml2-dev libyaml-dev libgmp-dev libreadline-dev postgresql librsvg2-bin libsqlite3-dev zlib1g-dev"
pkg_dependencies="apt-transport-https libssl-dev libxml2-dev libyaml-dev libgmp-dev libreadline-dev postgresql librsvg2-bin libsqlite3-dev zlib1g-dev" #crystal
#=================================================
# PERSONAL HELPERS

View file

@ -69,10 +69,14 @@ ynh_script_progression --message="Installing dependencies..." --weight=9
#ynh_exec_warn_less apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61
#ynh_install_extra_repo --repo="deb https://dl.bintray.com/crystal/deb all stable" --append
ynh_exec_warn_less curl -fsSL https://crystal-lang.org/install.sh | bash -s -- --crystal=0.36
#ynh_exec_warn_less curl -fsSL https://crystal-lang.org/install.sh | bash -s -- --crystal=0.36
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
tempdir="$(mktemp -d)"
ynh_setup_source --dest_dir=$tempdir --source_id=crystal
ynh_exec_warn_less dpkg -i $tempdir/crystal_0.36.1-1_amd64.deb
#=================================================
# CREATE A POSTGRESQL DATABASE
#=================================================