packInstall.sh.porg: account for the possibility of

having a source directory named x265_vx.y or just x265_x.y
(where x and y are digits)
This commit is contained in:
Pierre Labastie 2018-03-10 10:02:26 +00:00
parent 5c69841844
commit b25dbcf791

View file

@ -66,9 +66,11 @@ case $1 in
cacerts*)
VERSION=0.1
;;
btrfs*|node*|x265*)
btrfs*|node*)
VERSION=$(echo $1 | sed 's/^.*v//')
;;
x265*) # can contain vd.d or just d.d: thanks to packagers
VERSION=$(echo $1 | sed 's/^.*[v_]//')
*)
VERSION=$(echo $1 | sed 's/^.*[-_]\([0-9]\)/\1/' | sed 's/_/./g')
;;