Skip to content

Commit

Permalink
retrieving of the hash from the php/download site done
Browse files Browse the repository at this point in the history
  • Loading branch information
KrohomKrohom committed Aug 5, 2017
1 parent c92dfbd commit 8e1625d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ prepare() {
# Allow php-tidy to compile with tidy-html5
sed 's/buffio\.h/tidybuffio\.h/' -i ext/tidy/tidy.c

fileURL = curl http://php.net/downloads.php
hash = sed -e php-\$pkgver\.tar\.xz.*\n.*<span.*<\/span> fileURL | cut php-.*sha256\"> | cut </span>
str="curl http://php.net/downloads.php | grep -A 1 -G php-$pkgver.tar.xz | grep -A 1 -G sha"
str=$(eval $str)
hash=${str%</s*}
hash=${str#*>}
sha256sums=($hash
'SKIP'
'SKIP'
Expand Down

0 comments on commit 8e1625d

Please sign in to comment.