Update indentation and formatting

This commit is contained in:
Manuel 2022-11-15 17:29:49 +01:00
parent 2f644f6229
commit da6d580502

View file

@ -14,29 +14,29 @@ source=("https://download.sublimetext.com/sublime_text_3_build_${pkgver:2}_x64.t
sha256sums=('0b3c8ca5e6df376c3c24a4b9ac2e3b391333f73b229bc6e87d0b4a5f636d74ee') sha256sums=('0b3c8ca5e6df376c3c24a4b9ac2e3b391333f73b229bc6e87d0b4a5f636d74ee')
package() { package() {
cd "${srcdir}" cd "${srcdir}"
# Adjust naming # Adjust naming
sed -i 's#/opt/sublime_text/sublime_text#/opt/sublime_text_3/sublime_text#g' "sublime_text_3/sublime_text.desktop" sed -i 's#/opt/sublime_text/sublime_text#/opt/sublime_text_3/sublime_text#g' "sublime_text_3/sublime_text.desktop"
sed -i 's#Sublime Text#Sublime Text 3#g' "sublime_text_3/sublime_text.desktop" sed -i 's#Sublime Text#Sublime Text 3#g' "sublime_text_3/sublime_text.desktop"
sed -i 's#sublime-text#sublime-text-3#g' "sublime_text_3/sublime_text.desktop" sed -i 's#sublime-text#sublime-text-3#g' "sublime_text_3/sublime_text.desktop"
# Install sublime text 3 # Install sublime text 3
install -dm755 "${pkgdir}/opt" install -dm755 "${pkgdir}/opt"
cp --preserve=mode -r "sublime_text_3" "${pkgdir}/opt/sublime_text_3" cp --preserve=mode -r "sublime_text_3" "${pkgdir}/opt/sublime_text_3"
# Install icons # Install icons
for res in 128x128 16x16 256x256 32x32 48x48; do for res in 128x128 16x16 256x256 32x32 48x48; do
install -dm755 "${pkgdir}/usr/share/icons/hicolor/${res}/apps" install -dm755 "${pkgdir}/usr/share/icons/hicolor/${res}/apps"
ln -s "/opt/sublime_text_3/Icon/${res}/sublime-text.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/sublime-text-3.png" ln -s "/opt/sublime_text_3/Icon/${res}/sublime-text.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/sublime-text-3.png"
done done
# Install desktop entry and executable # Install desktop entry and executable
sed -i 's#/opt/sublime_text_3/sublime_text#/usr/bin/subl3#g' "sublime_text_3/sublime_text.desktop" sed -i 's#/opt/sublime_text_3/sublime_text#/usr/bin/subl3#g' "sublime_text_3/sublime_text.desktop"
install -dm755 "${pkgdir}/usr/share/applications" install -dm755 "${pkgdir}/usr/share/applications"
install -Dm644 "sublime_text_3/sublime_text.desktop" "${pkgdir}/usr/share/applications/sublime_text_3.desktop" install -Dm644 "sublime_text_3/sublime_text.desktop" "${pkgdir}/usr/share/applications/sublime_text_3.desktop"
install -dm755 "${pkgdir}/usr/bin" install -dm755 "${pkgdir}/usr/bin"
ln -s "/opt/sublime_text_3/sublime_text" "${pkgdir}/usr/bin/subl3" ln -s "/opt/sublime_text_3/sublime_text" "${pkgdir}/usr/bin/subl3"
} }