[arch-commits] Commit in php-mongodb/repos (3 files)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Apr 14 23:27:18 UTC 2022
Date: Thursday, April 14, 2022 @ 23:27:18
Author: felixonmars
Revision: 1186397
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 1186396, php-mongodb/trunk/PKGBUILD)
php-mongodb/repos/community-staging-x86_64/mongodb.ini
(from rev 1186396, 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 1186396, php-mongodb/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-04-14 23:27:18 UTC (rev 1186397)
@@ -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.13.0
+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=('54fa903d5afb49f7ab1e39174325e351c902142dafe3603c1331cfd8c73f2b0d4a29e382084685ef96e54e0a8f9d53bd08c2bea42e3bf5093a96a36faf4c6083'
+ '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 1186396, php-mongodb/trunk/mongodb.ini)
===================================================================
--- community-staging-x86_64/mongodb.ini (rev 0)
+++ community-staging-x86_64/mongodb.ini 2022-04-14 23:27:18 UTC (rev 1186397)
@@ -0,0 +1,2 @@
+; Tell PHP to load the MongoDB Extension on startup
+extension=mongodb.so
More information about the arch-commits
mailing list