From 21c5e0df4f1178293136f14a72eeb3ada5c87c11 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sun, 22 Nov 2020 17:20:43 +0100 Subject: [PATCH] Fix typos --- dist/arch/gnome/PKGBUILD | 92 ++++++++++++++------------------------ dist/arch/minimal/PKGBUILD | 4 +- 2 files changed, 36 insertions(+), 60 deletions(-) diff --git a/dist/arch/gnome/PKGBUILD b/dist/arch/gnome/PKGBUILD index 1da3d5f..e5b2130 100644 --- a/dist/arch/gnome/PKGBUILD +++ b/dist/arch/gnome/PKGBUILD @@ -20,7 +20,6 @@ makedepends=( 'zip' 'libx11' 'qt5-base' - 'notifications' ) provides=( 'systray-x' @@ -58,81 +57,58 @@ package() { } post_install() { - PROF_DIR=/etc/dconf/profile - PROF_FILE=user + PROF_DIR="/etc/dconf/profile" + PROF_FILE="user" - if [ -f $PROF_DIR/$PROF_FILE ] ; then + if [ -f ${PROF_DIR}/${PROF_FILE} ] ; then # # Edit user file # - grep -q "user-db:user" $PROF_DIR/$PROF_FILE + grep -q "user-db:user" ${PROF_DIR}/${PROF_FILE} if [ "$?" = "1" ] ; then - echo "user-db:user" >> $PROF_DIR/$PROF_FILE + echo "user-db:user" >> ${PROF_DIR}/${PROF_FILE} fi - - grep -q "system-db:local" $PROF_DIR/$PROF_FILE + + grep -q "system-db:local" ${PROF_DIR}/${PROF_FILE} if [ "$?" = "1" ] ; then - echo "system-db:local" >> $PROF_DIR/$PROF_FILE + echo "system-db:local" >> ${PROF_DIR}/${PROF_FILE} fi else # # Generate user file # - mkdir -p $PROF_DIR - cat >$PROF_DIR/$PROF_FILE <${PROF_DIR}/${PROF_FILE} < $CONF_DIR/$CONF_FILE - echo "# List all extensions that you want to have enabled for all users" >> $CONF_DIR/$CONF_FILE - echo "enabled-extensions=['${EXTENSION}']" >> $CONF_DIR/$CONF_FILE + # + # Generate extensions file + # + mkdir -p ${CONF_DIR} + cat >${CONF_DIR}/${CONF_FILE} < /dev/null 2>&1 - if [ "$?" = "0" ] ; then - dconf update + # + if [ -x /usr/bin/dconf ] ; then + dconf update fi } diff --git a/dist/arch/minimal/PKGBUILD b/dist/arch/minimal/PKGBUILD index 80ab696..9afc55a 100644 --- a/dist/arch/minimal/PKGBUILD +++ b/dist/arch/minimal/PKGBUILD @@ -11,14 +11,14 @@ license=(MPL-2.0) depends=( 'qt5-base' 'thunderbird>=68' - 'hunderbird<=84' + 'thunderbird<=84' ) makedepends=( 'git' 'unzip' 'zip' 'libx11' - 't5-base' + 'qt5-base' ) provides=( 'systray-x'