# Contributor: Andy Postnikov # Maintainer: Andy Postnikov pkgname=php8-pecl-smbclient _extname=smbclient pkgver=1.1.1 pkgrel=0 pkgdesc="PHP 8 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="php8-common" makedepends="php8-dev samba-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() { # Test suite require phpunit to run. php8 -d extension=modules/$_extname.so --ri smbclient } package() { make INSTALL_ROOT="$pkgdir" install local _confdir="$pkgdir"/etc/php8/conf.d install -d $_confdir echo "extension=$_extname" > $_confdir/$_extname.ini } sha512sums=" 17df088cacb80c378dec38fd6c6b8e83e1f6d8787e96e5eccac72792f8125cadda205568466fccd21900d1854bdaf3f042992d44e1c5ef458ade61aeec483513 php-pecl-smbclient-1.1.1.tgz "