summaryrefslogtreecommitdiffstats
path: root/psi/build/psi.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'psi/build/psi.SlackBuild')
-rwxr-xr-xpsi/build/psi.SlackBuild13
1 files changed, 9 insertions, 4 deletions
diff --git a/psi/build/psi.SlackBuild b/psi/build/psi.SlackBuild
index aa070aab..683f542b 100755
--- a/psi/build/psi.SlackBuild
+++ b/psi/build/psi.SlackBuild
@@ -68,7 +68,7 @@ ARCH=${ARCH:-i486}
BUILD=${BUILD:-3}
# We are going to download and add the following language packs for psi:
-LANG="es eo fr hu nl pl pt_BR sl vi bg mk"
+LANG="ca de et es eo fr hu it nl pl pt_BR sk sl sr@Latn vi cs bg mk zh"
LANGURLBASE="http://psi-im.org/files/translation/${VERSION}/"
DOCS="COPYING ChangeLog README TODO"
@@ -167,9 +167,6 @@ for lang in $LANG ; do
echo "Downloading '`basename ${LANGSRC}`' failed.. aborting the build."
mv -f "${LANGSRC}" "${LANGSRC}".FAIL
exit 1
- else
- echo "File '`basename ${LANGSRC}`' not available.. aborting the build."
- exit 1
fi
fi
done
@@ -216,6 +213,14 @@ fi
mkdir -p $PKG/usr/share/pixmaps/
cp $PKG/usr/share/icons/hicolor/32x32/apps/psi.png $PKG/usr/share/pixmaps/
+# Update the desktop database:
+mkdir -p $PKG/install
+cat <<-EOTT > $PKG/install/doinst.sh
+ if [ -x usr/bin/update-desktop-database ]; then
+ chroot . /usr/bin/update-desktop-database /usr/share/applications > /dev/null 2>&1
+ fi
+ EOTT
+
# Add documentation:
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true