Remove special cases for vim and tidy in packInstall.sh.pacman

This commit is contained in:
Pierre Labastie 2020-07-06 05:20:06 +00:00
parent d5a739aebd
commit 959319749e

View file

@ -14,8 +14,7 @@ local PACKAGE=$(echo ${TGTPKG} | sed 's/^[0-9]\{3\}-//' |
# name is not normalized, several hacks are necessary... # name is not normalized, several hacks are necessary...
case $PCKGVRS in case $PCKGVRS in
expect*|tcl*) local VERSION=$(echo $PCKGVRS | sed 's/^[^0-9]*//') ;; expect*|tcl*) local VERSION=$(echo $PCKGVRS | sed 's/^[^0-9]*//') ;;
vim*|unzip*) local VERSION=$(echo $PCKGVRS | sed 's/^[^0-9]*\([0-9]\)\([0-9]\)/\1.\2/') ;; unzip*) local VERSION=$(echo $PCKGVRS | sed 's/^[^0-9]*\([0-9]\)\([0-9]\)/\1.\2/') ;;
tidy*) local VERSION=$(echo $PCKGVRS | sed 's/^[^0-9]*\([0-9]*\)/\1cvs/') ;;
docbook-xml) local VERSION=4.5 ;; docbook-xml) local VERSION=4.5 ;;
*) local VERSION=$(echo ${PCKGVRS} | sed 's/^.*[-_]\([0-9]\)/\1/' | *) local VERSION=$(echo ${PCKGVRS} | sed 's/^.*[-_]\([0-9]\)/\1/' |
sed 's/_/./g');; sed 's/_/./g');;