add in fix for djvulibre; thanks to Erik Hanson for the bug report

This commit is contained in:
chess.griffin 2008-09-02 01:02:05 +00:00
parent fbed38f72c
commit f8155369e7

View File

@ -278,7 +278,12 @@ potential updates..." >> $UPDATELIST
NAME=$OLDNAME
PRGNAM="$PRGNAM$(egrep -m1 "^FONTLANG" $NEWSB | sed -e 's/[ #}\t].*$//;s/^.*://;s/_/-/g')"
fi
# Ugly hack for several SlackBuilds that use $SRCVER
# Ugly hack for djvulibre
if [ $PRGNAM = "djvulibre" ]; then
VERSION=$(echo $VERSION | sed -e 's/[ #}\t].*$//;s/^.*://;s/-/./g')
NEWSRCVER=""
fi
# Ugly hack for several SlackBuilds that use $SRCVER
# but not in the final package name, so we need to
# blank out $NEWSRCVER
if [[ "$PRGNAM" == "ctorrent" || "$PRGNAM" == "argtable" || "$PRGNAM" == "libevent" || "$PRGNAM" == "ubuntulooks" || "$PRGNAM" == "graveman" || "$PRGNAM" == "hugin" || "$PRGNAM" == "lame" ]]; then