Skip to content

Commit

Permalink
APPLICATION_NAME now contains the version
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd authored Nov 19, 2021
1 parent 05af8e6 commit 48c0e07
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions makebundle
Original file line number Diff line number Diff line change
Expand Up @@ -214,24 +214,24 @@ fi
# access("/usr/local/share/scribus/translations/scribus",R_OK) ERR#2 'No such file or directory'
# access("/usr/local/share/scribus/icons/",F_OK) ERR#2 'No such file or directory'
# DWANT_RELOCATABLE=1 in the scribus-devel Port Makefile could possibly remove the need for this
if [ "${APPLICATION_NAME}" == "Scribus" ] ; then
if [ "${PACKAGE_NAME}" == "scribus-devel" ] ; then
find "${APPLICATION_NAME}".app/Resources/usr/local -type f -exec sed -i '' -e 's|/usr/local|./././././|g' {} \;
cp "${APPLICATION_NAME}".app/Resources/usr/local/share/icons/hicolor/256x256/apps/scribus.png "${APPLICATION_NAME}".app/Resources/"${APPLICATION_NAME}".png
fi

# LibreOffice specific fixes
if [ "${APPLICATION_NAME}" == "LibreOffice" ] ; then
if [ "${PACKAGE_NAME}" == "libreoffice" ] ; then
( cd "${APPLICATION_NAME}".app ; ln -s Resources/usr/local/lib . )
cp "${APPLICATION_NAME}".app/Resources/usr/local/share/icons/hicolor/256x256/apps/libreoffice-main.png "${APPLICATION_NAME}".app/Resources/"${APPLICATION_NAME}".png
fi

# Inkscape specific fixes
if [ "${APPLICATION_NAME}" == "Inkscape" ] ; then
if [ "${PACKAGE_NAME}" == "inkscape" ] ; then
convert -fuzz 10% -transparent white -background transparent -resize 256x256 -gravity north -extent 256x256 "${APPLICATION_NAME}".app/Resources/usr/local/share/inkscape/pixmaps/inkscape.svg "${APPLICATION_NAME}".app/Resources/"${APPLICATION_NAME}".png
fi

# Chromium specific fixes
if [ "${APPLICATION_NAME}" == "Chromium" ] ; then
if [ "${PACKAGE_NAME}" == "chromium" ] ; then
sed -i '' -e 's|^exec /usr/local/share/chromium/chrome .*|exec "$(dirname "$(readlink -f "${0}")")"/../share/chromium/chrome ${1+"$@"}|g' "${APPLICATION_NAME}".app/Resources/usr/local/bin/chrome
cp "${APPLICATION_NAME}".app//Resources/usr/local/share/icons/hicolor/128x128/apps/chrome.png "${APPLICATION_NAME}".app/Resources/"${APPLICATION_NAME}".png
patchelf --set-rpath '$ORIGIN/../../lib' "${APPLICATION_NAME}".app/Resources/usr/local/share/chromium/chrome
Expand Down

0 comments on commit 48c0e07

Please sign in to comment.