mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-11-06 19:32:18 +01:00
communtiy/php81-pecl-amqp: modernize
This commit is contained in:
parent
3d94090309
commit
b19d8df522
@ -8,25 +8,27 @@ pkgdesc="PHP 8.1 extension to communicate with any AMQP spec 0-9-1 compatible se
|
|||||||
url="https://pecl.php.net/package/amqp"
|
url="https://pecl.php.net/package/amqp"
|
||||||
arch="all"
|
arch="all"
|
||||||
license="PHP-3.01"
|
license="PHP-3.01"
|
||||||
depends="php81-common"
|
_phpv=81
|
||||||
makedepends="php81-dev rabbitmq-c-dev"
|
_php=php$_phpv
|
||||||
|
depends="$_php-common"
|
||||||
|
makedepends="$_php-dev rabbitmq-c-dev"
|
||||||
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
|
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
|
||||||
builddir="$srcdir/$_extname-$pkgver"
|
builddir="$srcdir/$_extname-$pkgver"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
phpize81
|
phpize$_phpv
|
||||||
./configure --prefix=/usr --with-php-config=php-config81
|
./configure --prefix=/usr --with-php-config=php-config$_phpv
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
# Tests require running AMQP server, so basic check
|
# Tests require running AMQP server, so basic check
|
||||||
php81 -d extension="$builddir"/modules/$_extname.so --ri $_extname
|
$_php -d extension="$builddir"/modules/$_extname.so --ri $_extname
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
make INSTALL_ROOT="$pkgdir" install
|
make INSTALL_ROOT="$pkgdir" install
|
||||||
local _confdir="$pkgdir"/etc/php81/conf.d
|
local _confdir="$pkgdir"/etc/$_php/conf.d
|
||||||
mkdir -p $_confdir
|
mkdir -p $_confdir
|
||||||
echo "extension=$_extname" > $_confdir/40_$_extname.ini
|
echo "extension=$_extname" > $_confdir/40_$_extname.ini
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user