Fix shared directory detection

This commit is contained in:
2026-08-17 19:25:20 +02:00
parent f4281020b0
commit 28a4b2d8d3
2 changed files with 11 additions and 6 deletions
+8 -4
View File
@@ -6,7 +6,7 @@ SHAREDIR="${PREFIX}/share/yms"
BINDIR="${PREFIX}/bin"
DESKTOPDIR="${PREFIX}/share/applications"
ICONDIR="${PREFIX}/share/icons/hicolor"
DOCDIR="${PREFIX}/share/doc"
DOCDIR="${PREFIX}/share/doc/yms"
LOCALEDIR="${PREFIX}/share/locale"
SOURCEDIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
@@ -23,6 +23,7 @@ if [ "$(id -u)" -ne 0 ]; then
fi
echo "Installing Python application..."
install -d "${LIBDIR}"
# Main program
install -m 0644 \
@@ -36,6 +37,8 @@ cp -a "${SOURCEDIR}/yms/." "${LIBDIR}/yms/"
rm -rf "${LIBDIR}/yms/ui"
# Static resources
install -d "${SHAREDIR}"
install -d "${SHAREDIR}/ui"
install -m 0644 \
"${SOURCEDIR}/yms/ui/main.ui" \
"${SHAREDIR}/ui/main.ui"
@@ -68,13 +71,13 @@ install -d "${ICONDIR}/scalable/apps"
install -d "${ICONDIR}/48x48/apps"
install -d "${ICONDIR}/64x64/apps"
install -m 0644 \
"${SOURCEDIR}/yms.svg" \
"${SOURCEDIR}/icons/yms.svg" \
"${ICONDIR}/yms.svg"
install -m 0644 \
"${SOURCEDIR}/yms-48.png" \
"${SOURCEDIR}/icons/yms48.png" \
"${ICONDIR}/48x48/apps/yms.png"
install -m 0644 \
"${SOURCEDIR}/yms-64.png" \
"${SOURCEDIR}/icons/yms64.png" \
"${ICONDIR}/64x64/apps/yms.png"
echo "Installing launcher..."
@@ -85,6 +88,7 @@ EOF
chmod 0755 "${BINDIR}/yms"
echo "Installing desktop entry..."
install -d "${DESKTOPDIR}"
install -m 0644 \
"${SOURCEDIR}/yms.desktop" \
"${DESKTOPDIR}/yms.desktop"