mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-15 20:25:17 +03:00
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
# Contributor: Andy Postnikov <apostnikov@gmail.com>
|
|
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=php8-pecl-ssh2
|
|
_extname=ssh2
|
|
pkgver=1.3.1
|
|
pkgrel=0
|
|
pkgdesc="PHP 8 extension provide bindings for the libssh2 library - PECL"
|
|
url="https://pecl.php.net/package/ssh2"
|
|
arch="all"
|
|
license="PHP-3.01"
|
|
depends="php8-common"
|
|
makedepends="php8-dev libssh2-dev"
|
|
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
|
|
builddir="$srcdir/$_extname-$pkgver"
|
|
|
|
build() {
|
|
phpize8
|
|
./configure --prefix=/usr --with-php-config=php-config8
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
|
|
# Check extension loading, testsuite skips tests if extension broken
|
|
php8 -d extension=modules/$_extname.so --ri $_extname
|
|
}
|
|
|
|
package() {
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
local _confdir="$pkgdir"/etc/php8/conf.d
|
|
install -d $_confdir
|
|
echo "extension=$_extname" > $_confdir/$_extname.ini
|
|
}
|
|
|
|
sha512sums="c74d4f699853148b53cdca0eaf8837bfdbdd21d185761606acadf2442e84dbefdb00cde207e0ce4794ae1e4f8692a38ed903b6d11fdc57bca7b54a4250da9a76 php-pecl-ssh2-1.3.1.tgz"
|