2020-05-02 10:17:12 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# COMMON VARIABLES
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# PERSONAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
2024-01-05 23:51:07 +01:00
|
|
|
_install_phantomjs() {
|
2024-01-06 11:43:51 +01:00
|
|
|
source_dir="$install_dir/phantomjs/source"
|
|
|
|
destdir="$install_dir/phantomjs"
|
|
|
|
ynh_setup_source --dest_dir="$source_dir" --source_id="phantomjs"
|
2024-01-05 23:51:07 +01:00
|
|
|
|
2024-01-06 11:43:51 +01:00
|
|
|
pushd "$source_dir"
|
2024-01-06 11:52:21 +01:00
|
|
|
ynh_exec_warn_less env PREFIX="$destdir" ./configure
|
2024-01-06 11:43:51 +01:00
|
|
|
ynh_exec_warn_less make -j "$(nproc)"
|
2024-01-05 23:51:07 +01:00
|
|
|
ynh_exec_warn_less make install
|
|
|
|
popd
|
2024-01-06 11:43:51 +01:00
|
|
|
ynh_secure_remove --file="$source_dir"
|
2024-01-05 23:51:07 +01:00
|
|
|
}
|
2020-05-02 10:17:12 +02:00
|
|
|
#=================================================
|
|
|
|
# EXPERIMENTAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# FUTURE OFFICIAL HELPERS
|
|
|
|
#=================================================
|