Skip to content

Commit

Permalink
use of curl to obtain the hash and upgrade of php version
Browse files Browse the repository at this point in the history
  • Loading branch information
KrohomKrohom committed Jul 10, 2017
1 parent f6b79d8 commit 5b39bb6
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pkgname=("${pkgbase}"
"${pkgbase}-sqlite"
"${pkgbase}-tidy"
"${pkgbase}-xsl")
pkgver=5.6.30
pkgver=5.6.31
pkgrel=2
pkgfixname=5
pkgdesc="PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language. "
Expand All @@ -41,13 +41,13 @@ source=("http://www.php.net/distributions/${pkgbase%$pkgfixname}-${pkgver}.tar.x
"http://www.php.net/distributions/${pkgbase%$pkgfixname}-${pkgver}.tar.xz.asc"
'php.ini.patch' 'php-fpm.conf.in.patch'
'logrotate.d.php-fpm' 'php-fpm.service' 'php-fpm.tmpfiles')
md5sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
sha256sums=('c464af61240a9b7729fabe0314cdbdd5a000a4f0c9bd201f89f8628732fe4ae4'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
validpgpkeys=('6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3'
'0BD78B5F97500D450838F95DFE857D9A90D90EC1')

Expand All @@ -59,6 +59,15 @@ prepare() {

# Allow php-tidy to compile with tidy-html5
sed 's/buffio\.h/tidybuffio\.h/' -i ext/tidy/tidy.c

hash = curl http://php.net/downloads.php | sed -e "php-\$pkgver\.tar\.xz.*$^<span class=\"sha256\">.*" | cut "sha256\">" | cut "</span>"
sha256sums=($hash
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
}

build() {
Expand Down

1 comment on commit 5b39bb6

@Zulgrib
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

~/.src/php5-fpm-install/PKGBUILD: line 63: hash: =: not found
sed: -e expression #1, char 2: extra characters after command
cut: you must specify a list of bytes, characters, or fields
Try 'cut --help' for more information.
cut: you must specify a list of bytes, characters, or fields
Try 'cut --help' for more information.
==> ERROR: A failure occurred in prepare().
Aborting...

Please sign in to comment.