[arch-commits] Commit in php-mongodb/repos (3 files)

Felix Yan felixonmars at gemini.archlinux.org
Mon Nov 22 00:13:04 UTC 2021


    Date: Monday, November 22, 2021 @ 00:13:04
  Author: felixonmars
Revision: 1054114

archrelease: copy trunk to community-staging-x86_64

Added:
  php-mongodb/repos/community-staging-x86_64/
  php-mongodb/repos/community-staging-x86_64/PKGBUILD
    (from rev 1054112, php-mongodb/trunk/PKGBUILD)
  php-mongodb/repos/community-staging-x86_64/mongodb.ini
    (from rev 1054113, php-mongodb/trunk/mongodb.ini)

-------------+
 PKGBUILD    |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 mongodb.ini |    2 ++
 2 files changed, 54 insertions(+)

Copied: php-mongodb/repos/community-staging-x86_64/PKGBUILD (from rev 1054112, php-mongodb/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-22 00:13:04 UTC (rev 1054114)
@@ -0,0 +1,52 @@
+# Maintainer: BlackEagle < ike DOT devolder AT gmail DOT com >
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Martin Striz < ms AT martinstriz DOT cz >
+# Contributor: Jarek Sedlacek <jareksedlacek at gmail.com>
+
+pkgbase=php-mongodb
+pkgname=(php-mongodb php7-mongodb)
+pkgver=1.11.1
+pkgrel=2
+pkgdesc="MongoDB driver for PHP"
+arch=("x86_64")
+url="http://mongodb.github.io/mongo-php-driver"
+license=("Apache")
+makedepends=('php7' 'php' 're2c')
+source=(
+	"https://pecl.php.net/get/mongodb-$pkgver.tgz"
+	"mongodb.ini"
+)
+sha512sums=('4faa97a04da349b94d94b8a0ccb856c2f80ca26cf30cd001ca21293348b4a5375db074eb33594b3c4b1f8a121f21a3253b67a88c2d90421383aa5c63cfc78643'
+            '47b167ab4d761f4cf8351fef14e46c714dacae6d9a1b6d281bb87129499ee520f55f35f47c16b55ea2ecf41c67aad12439a99d3363d381b2511659b01f0b6ef0')
+
+prepare() {
+    cp -a "$srcdir/mongodb-$pkgver" "$srcdir/mongodb7-$pkgver"
+}
+
+build() {
+	cd "$srcdir/mongodb-$pkgver"
+	phpize
+	./configure --prefix=/usr
+
+	cd "$srcdir/mongodb7-$pkgver"
+	phpize7
+	./configure --prefix=/usr
+}
+
+package_php-mongodb() {
+    pkgdesc="MongoDB driver for PHP"
+    depends=('php')
+    backup=("etc/php/conf.d/mongodb.ini")
+	cd mongodb-$pkgver
+	make INSTALL_ROOT="$pkgdir" install
+	install -Dm644 "$srcdir/mongodb.ini" "$pkgdir/etc/php/conf.d/mongodb.ini"
+}
+
+package_php7-mongodb() {
+    pkgdesc="MongoDB driver for PHP7"
+    depends=('php7')
+    backup=("etc/php7/conf.d/mongodb.ini")
+	cd mongodb7-$pkgver
+	make INSTALL_ROOT="$pkgdir" install
+	install -Dm644 "$srcdir/mongodb.ini" "$pkgdir/etc/php7/conf.d/mongodb.ini"
+}

Copied: php-mongodb/repos/community-staging-x86_64/mongodb.ini (from rev 1054113, php-mongodb/trunk/mongodb.ini)
===================================================================
--- community-staging-x86_64/mongodb.ini	                        (rev 0)
+++ community-staging-x86_64/mongodb.ini	2021-11-22 00:13:04 UTC (rev 1054114)
@@ -0,0 +1,2 @@
+; Tell PHP to load the MongoDB Extension on startup
+extension=mongodb.so



More information about the arch-commits mailing list