mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-11 15:26:50 +02:00
community/php7-pecl-ssh2: fix build and add check()
This commit is contained in:
parent
ee574454d1
commit
c2a8a93cc1
@ -3,14 +3,16 @@
|
||||
pkgname=php7-pecl-ssh2
|
||||
_pkgreal=ssh2
|
||||
pkgver=1.1.2
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc="PHP extension provide bindings for the libssh2 library - PECL"
|
||||
url="https://pecl.php.net/package/ssh2"
|
||||
arch="all"
|
||||
license="PHP-3.01"
|
||||
depends="php7-common"
|
||||
makedepends="php7-dev autoconf libssh2-dev re2c"
|
||||
options="!check" # Depends on setup of user, cert & running ssh server
|
||||
source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
|
||||
source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_pkgreal-$pkgver.tgz
|
||||
fix-php-7x.patch
|
||||
"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
provides="php7-ssh2=$pkgver-r$pkgrel" # for backward compatibility
|
||||
replaces="php7-ssh2" # for backward compatibility
|
||||
@ -23,6 +25,13 @@ build() {
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
|
||||
# Check extension loading, testsuite skips tests if extension broken
|
||||
php7 -d extension="$builddir"/modules/$_pkgreal.so --ri $_pkgreal
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
|
||||
@ -32,4 +41,5 @@ package() {
|
||||
echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
|
||||
}
|
||||
|
||||
sha512sums="36793191448745b8a9b3cc628fe9fb431480792c7a2ff0bf2eccd58cda1cf944933be1d301c455d4a6f3dabf7e04ffef248bc402a8ff99bfafcba0deddb25c36 php7-pecl-ssh2-1.1.2.tgz"
|
||||
sha512sums="36793191448745b8a9b3cc628fe9fb431480792c7a2ff0bf2eccd58cda1cf944933be1d301c455d4a6f3dabf7e04ffef248bc402a8ff99bfafcba0deddb25c36 php7-pecl-ssh2-1.1.2.tgz
|
||||
81a4f2b7ba7e1f5e2224b42b684110697ce824f121d686b8b95b4f2aae185f3bbc02f81c435aedb3586348909e0d458f3b5120803187f12bd4ff9048a087822b fix-php-7x.patch"
|
||||
|
||||
1173
community/php7-pecl-ssh2/fix-php-7x.patch
Normal file
1173
community/php7-pecl-ssh2/fix-php-7x.patch
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user