Commit 7cef9b77 authored by Иван Мажукин's avatar Иван Мажукин Committed by Vitaly Lipatov

epm pack, repack: add Davinci-resolve

parent 695fba55
......@@ -8,19 +8,15 @@ PRODUCT=davinci-resolve
# DaVinci_Resolve_18.6.5_Linux.run
BASENAME=$(basename $1 .run)
VERSION=$(echo $BASENAME | sed -e 's|DaVinci_Resolve_||' | sed -e 's|_Linux||')
VERSION=$(echo $BASENAME | sed -e 's|DaVinci_Resolve_||' -e 's|_Linux||')
mkdir -p opt/davinci-resolve
$1 --appimage-extract &> /dev/null
mv -v squashfs-root/* opt/davinci-resolve/
# fix for libpango.so error
# mv opt/davinci-resolve/libs/libc++.so.1 opt/davinci-resolve/libs/libc++.so.1.orig
# mv opt/davinci-resolve/libs/libglib-2.0.so.0 opt/davinci-resolve/libs/libglib-2.0.so.0.orig
install -Dm0644 opt/davinci-resolve/share/default-config.dat -t opt/$PRODUCT/configs
install -Dm0644 opt/davinci-resolve/share/log-conf.xml -t opt/$PRODUCT}/configs
install -Dm0644 opt/davinci-resolve/share/log-conf.xml -t opt/$PRODUCT/configs
install -Dm0644 opt/davinci-resolve/share/default_cm_config.bin -t opt/$PRODUCT/DolbyVision
install -Dm0644 opt/davinci-resolve/share/*.desktop -t usr/share/applications
......@@ -34,7 +30,13 @@ install -Dm0644 opt/davinci-resolve/share/etc/udev/rules.d/99-BlackmagicDevices.
install -Dm0644 opt/davinci-resolve/share/etc/udev/rules.d/99-ResolveKeyboardHID.rules -t usr/lib/udev/rules.d
# install -Dm0644 opt/davinci-resolve/share/etc/udev/rules.d/99-DavinciPanel.rules -t usr/lib/udev/rules.d
echo "StartupWMClass=resolve" >> usr/share/DaVinciResolve.desktop
subst "s|RESOLVE_INSTALL_LOCATION|/opt/davinci-resolve|" usr/share/applications/*.desktop
subst "s|RESOLVE_INSTALL_LOCATION|/opt/davinci-resolve|" usr/share/desktop-directories/*
# fix for libpango.so error too
rm -v opt/davinci-resolve/libs/libglib-2.0.so.0
# ln -s /usr/lib/libglib-2.0.so.0 opt/davinci-resolve/libs/libglib-2.0.so.0
PKGNAME=$PRODUCT-$VERSION
......
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
. $(dirname $0)/common.sh
ignore_lib_requires libstdc++-libc6.2-2.so.3 libstdc++.so.5
add_libs_requires
add_bin_exec_command davinci-resolve "$PRODUCTDIR/bin/resolve"
add_bin_exec_command blackmagicrawplayer "$PRODUCTDIR/BlackmagicRAWPlayer/BlackmagicRAWPlayer"
add_bin_exec_command blackmagicrawspeedtest "$PRODUCTDIR/BlackmagicRAWSpeedTest/BlackmagicRAWSpeedTest"
add_bin_exec_command davinci_control_panels_setup "$PRODUCTDIR/DaVinci Control Panels Setup/DaVinci Control Panels Setup"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment