Lines 151-158
Link Here
|
151 |
copy_object ${UNPACK_DIR}/libs/libBlackmagicRawAPI.so ${RESOLVE_BASE_DIR}/bin/ |
151 |
copy_object ${UNPACK_DIR}/libs/libBlackmagicRawAPI.so ${RESOLVE_BASE_DIR}/bin/ |
152 |
|
152 |
|
153 |
# Install panel API library |
153 |
# Install panel API library |
154 |
create_directory ${DEB_DIR}/usr/lib/ |
154 |
create_directory ${DEB_DIR}/usr/#LIBDIR#/ |
155 |
extract_tgz ${UNPACK_DIR}/share/panels/dvpanel-framework-linux-x86_64.tgz ${DEB_DIR}/usr/lib/ libDaVinciPanelAPI.so |
155 |
extract_tgz ${UNPACK_DIR}/share/panels/dvpanel-framework-linux-x86_64.tgz ${DEB_DIR}/usr/#LIBDIR#/ libDaVinciPanelAPI.so |
156 |
|
156 |
|
157 |
# Create desktop shortcuts |
157 |
# Create desktop shortcuts |
158 |
assert_object ${DEB_DIR}/opt/resolve/graphics/DV_Resolve.png |
158 |
assert_object ${DEB_DIR}/opt/resolve/graphics/DV_Resolve.png |
Lines 237-244
Link Here
|
237 |
copy_object ${UNPACK_DIR}/share/default_cm_config.bin ${RESOLVE_BASE_DIR}/share/ |
237 |
copy_object ${UNPACK_DIR}/share/default_cm_config.bin ${RESOLVE_BASE_DIR}/share/ |
238 |
|
238 |
|
239 |
# Extract panel API library |
239 |
# Extract panel API library |
240 |
create_directory ${DEB_DIR}/usr/lib |
240 |
create_directory ${DEB_DIR}/usr/#LIBDIR#/ |
241 |
extract_tgz ${UNPACK_DIR}/share/panels/dvpanel-framework-linux-x86_64.tgz ${DEB_DIR}/usr/lib libDaVinciPanelAPI.so |
241 |
extract_tgz ${UNPACK_DIR}/share/panels/dvpanel-framework-linux-x86_64.tgz ${DEB_DIR}/usr/#LIBDIR#/ libDaVinciPanelAPI.so |
242 |
|
242 |
|
243 |
# BlackmagicRawAPI fixes |
243 |
# BlackmagicRawAPI fixes |
244 |
create_directory ${RESOLVE_BASE_DIR}/bin/BlackmagicRawAPI/ |
244 |
create_directory ${RESOLVE_BASE_DIR}/bin/BlackmagicRawAPI/ |
Lines 329-337
Link Here
|
329 |
copy_object ${UNPACK_DIR}/share/default_cm_config.bin ${RESOLVE_BASE_DIR}/share/ |
329 |
copy_object ${UNPACK_DIR}/share/default_cm_config.bin ${RESOLVE_BASE_DIR}/share/ |
330 |
|
330 |
|
331 |
# Extract panel API library |
331 |
# Extract panel API library |
332 |
create_directory ${DEB_DIR}/usr/lib |
332 |
create_directory ${DEB_DIR}/usr/#LIBDIR#/ |
333 |
extract_tgz ${UNPACK_DIR}/share/panels/dvpanel-framework-linux-x86_64.tgz ${DEB_DIR}/usr/lib libDaVinciPanelAPI.so |
333 |
extract_tgz ${UNPACK_DIR}/share/panels/dvpanel-framework-linux-x86_64.tgz ${DEB_DIR}/usr/#LIBDIR#/ libDaVinciPanelAPI.so |
334 |
extract_tgz ${UNPACK_DIR}/share/panels/dvpanel-framework-linux-x86_64.tgz ${DEB_DIR}/usr/lib libFairlightPanelAPI.so |
334 |
extract_tgz ${UNPACK_DIR}/share/panels/dvpanel-framework-linux-x86_64.tgz ${DEB_DIR}/usr/#LIBDIR#/ libFairlightPanelAPI.so |
335 |
|
335 |
|
336 |
# BlackmagicRawAPI fixes for 17.0 & 17.1 |
336 |
# BlackmagicRawAPI fixes for 17.0 & 17.1 |
337 |
if [[ "$RESOLVE_VERSION" == 17.0* ]] || [[ "$RESOLVE_VERSION" == 17.1* ]]; |
337 |
if [[ "$RESOLVE_VERSION" == 17.0* ]] || [[ "$RESOLVE_VERSION" == 17.1* ]]; |
Lines 457-463
Link Here
|
457 |
echo "[ERROR] DaVinci Resolve installer archive is not executable" |
457 |
echo "[ERROR] DaVinci Resolve installer archive is not executable" |
458 |
exit 1 |
458 |
exit 1 |
459 |
fi |
459 |
fi |
460 |
NUMEXTRACT=$(./${INSTALLER_ARCHIVE} -i -y -n -C ${UNPACK_DIR} | grep "^Copied " -c) |
460 |
NUMEXTRACT=$(./${INSTALLER_ARCHIVE} -i -y -n -a -C ${UNPACK_DIR} | grep "^Copied " -c) |
461 |
echo "Found ${NUMEXTRACT} objects" |
461 |
echo "Found ${NUMEXTRACT} objects" |
462 |
if [[ -z "$(ls -A ${UNPACK_DIR})" ]]; |
462 |
if [[ -z "$(ls -A ${UNPACK_DIR})" ]]; |
463 |
then |
463 |
then |
Lines 589-596
Link Here
|
589 |
|
589 |
|
590 |
# Verify that we have the commands we need |
590 |
# Verify that we have the commands we need |
591 |
check_command tar |
591 |
check_command tar |
592 |
check_command fakeroot |
592 |
#check_command fakeroot |
593 |
check_command dpkg-deb |
593 |
#check_command dpkg-deb |
594 |
echo |
594 |
echo |
595 |
|
595 |
|
596 |
# Create destination directories |
596 |
# Create destination directories |
Lines 634-648
Link Here
|
634 |
|
634 |
|
635 |
# Create Debian package |
635 |
# Create Debian package |
636 |
close_deb |
636 |
close_deb |
637 |
echo "Creating Debian package" |
637 |
#echo "Creating Debian package" |
638 |
if ! fakeroot dpkg-deb -b ${DEB_DIR} ${DEB_DIR}.deb; |
638 |
#if ! fakeroot dpkg-deb -b ${DEB_DIR} ${DEB_DIR}.deb; |
639 |
then |
639 |
#then |
640 |
ERRORS=$((ERRORS+1)) |
640 |
# ERRORS=$((ERRORS+1)) |
641 |
fi |
641 |
#fi |
642 |
|
642 |
|
643 |
# Clean up |
643 |
# Clean up |
644 |
remove_directory ${UNPACK_DIR} |
644 |
remove_directory ${UNPACK_DIR} |
645 |
remove_directory ${DEB_DIR} |
645 |
#remove_directory ${DEB_DIR} |
646 |
|
646 |
|
647 |
# Report |
647 |
# Report |
648 |
echo |
648 |
echo |