# Contributor: Andy Postnikov # Maintainer: Andy Postnikov pkgname=php81-pecl-smbclient _extname=smbclient pkgver=1.0.6 pkgrel=1 pkgdesc="PHP 8.1 extension that uses Samba's libsmbclient library to provide Samba related functions and 'smb' streams to PHP programs." url="https://pecl.php.net/package/smbclient" arch="all" license="BSD-2-Clause" depends="php81-common" makedepends="php81-dev samba-dev" checkdepends="phpunit" source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz fix-test.patch" builddir="$srcdir"/$_extname-$pkgver build() { phpize81 ./configure --prefix=/usr --with-php-config=php-config81 make } check() { php81 -d extension=modules/$_extname.so --ri smbclient # Test suite require smb to run. php81 -d extension=modules/$_extname.so "$(command -v phpunit)" \ -c phpunit.xml.dist tests/VersionTest.php } package() { make INSTALL_ROOT="$pkgdir" install local _confdir="$pkgdir"/etc/php81/conf.d install -d $_confdir echo "extension=$_extname" > $_confdir/$_extname.ini } sha512sums=" 381051dbe6347ce3b0be9d1ed44ee80be846ce1cd4255689127220a48e3c157853e98ae463435a12342f6370b4e96c162069d8d00574aaf88675c5b9ad0810e8 php-pecl-smbclient-1.0.6.tgz eaf8c764a2020fb45a58c181eab14beadb76d9e3376364914ecb2884d13e7bceb0f00445389c74964245664d860a59464dff47dd8ade7a58de700e80b1781ffa fix-test.patch "