diff --git a/conf/crystal.src b/conf/crystal.src new file mode 100644 index 0000000..14ed0e2 --- /dev/null +++ b/conf/crystal.src @@ -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 diff --git a/scripts/_common.sh b/scripts/_common.sh index a133771..77effa8 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -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 diff --git a/scripts/install b/scripts/install index daa3cfd..3159fc0 100644 --- a/scripts/install +++ b/scripts/install @@ -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 #=================================================