2017-06-09 15:41:37 +02:00
|
|
|
#!/bin/bash
|
2020-07-05 19:14:29 +02:00
|
|
|
|
2022-05-29 12:45:09 +02:00
|
|
|
#=================================================
|
|
|
|
# COMMON VARIABLES
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
# dependencies used by the app
|
|
|
|
pkg_dependencies="cmake imagemagick ghostscript curl libmagickwand-dev git libpq-dev redis-server postgresql"
|
|
|
|
build_pkg_dependencies="libffi-dev libgdbm-dev libncurses5-dev libyaml-dev pkg-config sqlite3 libgmp-dev libssl-dev"
|
|
|
|
|
|
|
|
ruby_version=2.6.6
|
|
|
|
nodejs_version=14
|
2022-09-27 01:22:29 +02:00
|
|
|
bundler_version=2.1.4
|
2022-05-29 12:45:09 +02:00
|
|
|
|
|
|
|
# Workaround for Mastodon on Bullseye
|
|
|
|
# See https://github.com/mastodon/mastodon/issues/15751#issuecomment-873594463
|
|
|
|
if [ "$(lsb_release --codename --short)" = "bullseye" ]; then
|
|
|
|
case $YNH_ARCH in
|
|
|
|
amd64)
|
|
|
|
arch="x86_64"
|
|
|
|
;;
|
|
|
|
arm64)
|
|
|
|
arch="aarch64"
|
|
|
|
;;
|
|
|
|
armel|armhf)
|
|
|
|
arch="arm"
|
|
|
|
;;
|
|
|
|
i386)
|
|
|
|
arch="i386"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
ld_preload="LD_PRELOAD=/usr/lib/$arch-linux-gnu/libjemalloc.so"
|
|
|
|
else
|
|
|
|
ld_preload=""
|
|
|
|
fi
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# PERSONAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# EXPERIMENTAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# FUTURE OFFICIAL HELPERS
|
|
|
|
#=================================================
|