switch to hybrid

This commit is contained in:
aptalca
2022-08-12 15:29:05 -04:00
parent c36a070d75
commit 8d5fce3b16
6 changed files with 38 additions and 0 deletions
@@ -0,0 +1,36 @@
#!/usr/bin/with-contenv bash
if ! pip list 2>&1 | grep -q "pillow_heif" || ! pip list 2>&1 | grep -q "hexhamming" || ! pip list 2>&1 | grep -q "pywavelets"; then
echo "**** Adding pillow_heif, hexhamming, pywavelets and their deps to package install lists ****"
echo "\
ffmpeg \
imagemagick \
supervisor \
py3-numpy \
py3-pillow \
py3-asn1crypto \
py3-cffi \
py3-scipy \
py3-pynacl \
py3-cryptography \
py3-pip" >> /mod-repo-packages-to-install.list
if [ $(arch) = "armv7l" ]; then
echo "**** Installing build deps for pillow_heif on arm32v7, compiling pillow_heif may take a long time in the next step ****"
echo "\
python3-dev \
libtool \
git \
gcc \
m4 \
perl \
alpine-sdk \
cmake \
aom-dev" >> /mod-repo-packages-to-install.list
fi
echo "\
pillow_heif \
hexhamming \
pywavelets" >> /mod-pip-packages-to-install.list
else
echo "**** pillow_heif, hexhamming and pywavelets already installed, skipping ****"
fi
@@ -0,0 +1 @@
oneshot
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-mod-nextcloud-mediadc-add-package/run