Skip to content
Snippets Groups Projects
Commit 58050f67 authored by Andy Postnikov's avatar Andy Postnikov
Browse files

testing/php8-pecl-amqp: new aport

parent b08a6228
1 merge request!15498testing/php8-pecl-amqp: new aport
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php8-pecl-amqp
_extname=amqp
pkgver=1.10.2
pkgrel=0
pkgdesc="PHP 8 extension to communicate with any AMQP spec 0-9-1 compatible server - PECL"
url="https://pecl.php.net/package/amqp"
arch="all"
license="PHP-3.01"
depends="php8-common"
makedepends="php8-dev rabbitmq-c-dev"
_githash="df1241852b359cf12c346beaa68de202257efdf1"
source="https://github.com/php-amqp/php-amqp/archive/$_githash.tar.gz"
builddir="$srcdir/php-$_extname-$_githash"
#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() {
# Tests require running AMQP server, so basic check
php8 -d extension="$builddir"/modules/$_extname.so --ri $_extname
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/php8/conf.d
mkdir -p $_confdir
echo "extension=$_extname" > $_confdir/40_$_extname.ini
}
sha512sums="196a6064780dccfedf2777eccb0835b45a391a181f9a8dd1368a3114b0c7e352af09ed228398b1aa736a76cff453cfa7fc218b763aedd28f0aa9f12901a8c745 df1241852b359cf12c346beaa68de202257efdf1.tar.gz"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment