# Maintainer: Leonardo Arena _php=php81 pkgname=mongo-php-library pkgver=1.13.0 pkgrel=0 pkgdesc="High-level abstraction around the lower-level drivers for PHP" url="https://github.com/mongodb/mongo-php-library" arch="noarch" license="Apache-2.0" depends="$_php-openssl $_php-pecl-mongodb" makedepends="composer $_php-dom $_php-simplexml $_php-tokenizer $_php-xml $_php-xmlwriter" subpackages="$pkgname-doc" options="!check" # require mongodb server source="$pkgname-$pkgver.tar.gz::https://github.com/mongodb/mongo-php-library/archive/$pkgver.tar.gz" replaces="mongo-php7-library" # for backward compatibility provides="mongo-php7-library=$pkgver-r$pkgrel" # for backward compatibility package() { mkdir -p "$pkgdir"/usr/share/doc/mongo-$_php-library/docs mkdir -p "$pkgdir"/usr/lib/$_php/vendor/mongodb/mongodb mv src/* "$pkgdir"/usr/lib/$_php/vendor/mongodb/mongodb mv tests "$pkgdir"/usr/lib/$_php/vendor/mongodb/mongodb/ mv docs/* "$pkgdir"/usr/share/doc/mongo-$_php-library/docs mv LICENSE README.md "$pkgdir"/usr/share/doc/mongo-$_php-library } sha512sums=" ebf8d98ca0f4b8a1947574eb6742c829b0ebbb9488be7a190a8254afa3f4f4033ae76bae77c3eb0d5afe09e2d664e16bf515b7436faa61a160cf98c730e3dabf mongo-php-library-1.13.0.tar.gz "