mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-22 10:45:15 +03:00
36 lines
1.2 KiB
Text
36 lines
1.2 KiB
Text
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
|
|
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=php8-pecl-mailparse
|
|
_extname=mailparse
|
|
pkgver=3.1.1
|
|
pkgrel=0
|
|
pkgdesc="PHP 8 extension for parsing and working with email messages - PECL"
|
|
url="https://pecl.php.net/package/mailparse"
|
|
arch="all"
|
|
license="PHP-3.01"
|
|
depends="php8-mbstring"
|
|
makedepends="php8-dev"
|
|
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 mbstring extension which is not bundled
|
|
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test PHP_TEST_SHARED_EXTENSIONS=" \
|
|
-d extension=/usr/lib/php8/modules/mbstring.so \
|
|
-d extension=modules/$_extname.so" TESTS=--show-diff
|
|
}
|
|
|
|
package() {
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
local _confdir="$pkgdir"/etc/php8/conf.d
|
|
install -d $_confdir
|
|
echo "extension=$_extname" > $_confdir/60_$_extname.ini
|
|
}
|
|
|
|
sha512sums="01ddb8d4d27a74c14f70b02b49322c60fc79affab374205fee91b9da21e5148e08dba024f6bc620e4f26c2c937675e09092c52ca69172d2f7797c3e2bf374bee php-pecl-mailparse-3.1.1.tgz"
|