Add a guard to lzdoom so it doesn't error if a config directory is missing.

This commit is contained in:
fewtarius 2022-03-30 15:56:12 -04:00
parent 91cef8b5a2
commit c0790fc46f
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -30,18 +30,21 @@ makeinstall_host() {
pre_configure_target() { pre_configure_target() {
PKG_CMAKE_OPTS_TARGET=" -DNO_GTK=ON \ PKG_CMAKE_OPTS_TARGET=" -DNO_GTK=ON \
-DFORCE_CROSSCOMPILE=ON \ -DFORCE_CROSSCOMPILE=ON \
-DIMPORT_EXECUTABLES=$PKG_BUILD/.$HOST_NAME/ImportExecutables.cmake \ -DIMPORT_EXECUTABLES=${PKG_BUILD}/.$HOST_NAME/ImportExecutables.cmake \
-DCMAKE_BUILD_TYPE=Release" -DCMAKE_BUILD_TYPE=Release"
} }
makeinstall_target() { makeinstall_target() {
mkdir -p $INSTALL/usr/bin mkdir -p ${INSTALL}/usr/bin
cp $PKG_DIR/lzdoom.sh $INSTALL/usr/bin/ cp ${PKG_DIR}/lzdoom.sh ${INSTALL}/usr/bin/
cp $PKG_BUILD/.$TARGET_NAME/lzdoom $INSTALL/usr/bin cp ${PKG_BUILD}/.$TARGET_NAME/lzdoom ${INSTALL}/usr/bin
mkdir -p $INSTALL/usr/config/game/lzdoom mkdir -p ${INSTALL}/usr/config/game/lzdoom
cp $PKG_DIR/config/${DEVICE}/* $INSTALL/usr/config/game/lzdoom if [ -d "${PKG_DIR}/config/${DEVICE}" ]
cp $PKG_BUILD/.$TARGET_NAME/*.pk3 $INSTALL/usr/config/game/lzdoom then
cp -r $PKG_BUILD/.$TARGET_NAME/soundfonts $INSTALL/usr/config/game/lzdoom cp ${PKG_DIR}/config/${DEVICE}/* ${INSTALL}/usr/config/game/lzdoom
cp -r $PKG_BUILD/.$TARGET_NAME/fm_banks $INSTALL/usr/config/game/lzdoom fi
cp ${PKG_BUILD}/.$TARGET_NAME/*.pk3 ${INSTALL}/usr/config/game/lzdoom
cp -r ${PKG_BUILD}/.$TARGET_NAME/soundfonts ${INSTALL}/usr/config/game/lzdoom
cp -r ${PKG_BUILD}/.$TARGET_NAME/fm_banks ${INSTALL}/usr/config/game/lzdoom
} }