Skip to content

Commit

Permalink
Fixed libtool download
Browse files Browse the repository at this point in the history
  • Loading branch information
michacassola committed May 20, 2024
1 parent 04ba7f1 commit c42bd82
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions unypkg-base-build-stage1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ repo_clone_version_archive
### GMP
pkgname="gmp"

latest_pkg="$(curl https://ftp.gnu.org/gnu/gmp/ | tac | tac | grep -oE "gmp-.*.tar.xz\"" | sed "s|\"||" | tail -n 1)"
latest_pkg="$(curl -L https://ftp.gnu.org/gnu/gmp/ | tac | tac | grep -oE "gmp-.*.tar.xz\"" | sed "s|\"||" | sort --version-sort | tail -n 1)"
latest_ver="$(echo "$latest_pkg" | cut --delimiter='-' --fields=2 | sed "s|.tar.xz||")"
latest_commit_id="$latest_ver"

Expand Down Expand Up @@ -857,8 +857,13 @@ archiving_source

######################################################################################################################
### Libtool
libtool_stable_ver="$(
curl -L https://ftp.gnu.org/gnu/libtool/ | tac | tac | grep -oE "libtool-.*.tar.xz\"" |
sed -e "s|.tar.xz\"||" -e "s|libtool-||" | sort --version-sort | tail -n 1
)"

pkgname="libtool"
pkggit="https://git.savannah.gnu.org/git/libtool.git refs/tags/v[0-9.]*"
pkggit="https://git.savannah.gnu.org/git/libtool.git refs/tags/v${libtool_stable_ver}*"
gitdepth="--depth=1"

### Get version info from git remote
Expand Down

0 comments on commit c42bd82

Please sign in to comment.