summaryrefslogtreecommitdiff
path: root/graphics/fontforge
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2020-10-23 15:25:47 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-10-24 08:14:51 +0700
commit7beb6f5d2e22ffe7d4bdd307b8caaf9b2925c2bd (patch)
treef85701cf912f815286bfe6cb18b5cc7375a638d5 /graphics/fontforge
parent5c8bd418a9c140062b1f65e16d60a17f7edbe0e2 (diff)
downloadslackbuilds-7beb6f5d2e22ffe7d4bdd307b8caaf9b2925c2bd.tar.gz
graphics/fontforge: Add trap to exit if already installed.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/fontforge')
-rw-r--r--graphics/fontforge/fontforge.SlackBuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/graphics/fontforge/fontforge.SlackBuild b/graphics/fontforge/fontforge.SlackBuild
index 943290c150..0e5952bb93 100644
--- a/graphics/fontforge/fontforge.SlackBuild
+++ b/graphics/fontforge/fontforge.SlackBuild
@@ -25,7 +25,7 @@
# Currently maintained by David Woodfall <dave@slackbuilds.org>
#
# 2020-10-12 20:48:40 +0100:
-# Update to Version ff 20190801, gnulib 20200505~0747bf0
+# Update to Version ff 20190801, gnulib 20200505~0747bf0
# Added --without-libuninameslist
PRGNAM=fontforge
@@ -38,6 +38,12 @@ FREETYPE=${FREETYPE:-2.10.0}
GNULIB=${GNULIB:-20200505~0747bf0}
UTHASH=${UTHASH:-2.1.0}
+if [ -e $( echo /var/log/packages/$PRGNAM-*-*-* ) ]; then
+ echo "Please uninstall any previous versions of $PRGNAM first."
+ echo "Exiting."
+ exit 1
+fi
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;