mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/php82-pecl-mailparse: new aport
This commit is contained in:
parent
1bd10e7d38
commit
9453e3a130
40
testing/php82-pecl-mailparse/APKBUILD
Normal file
40
testing/php82-pecl-mailparse/APKBUILD
Normal file
@ -0,0 +1,40 @@
|
||||
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
|
||||
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
||||
pkgname=php82-pecl-mailparse
|
||||
_extname=mailparse
|
||||
pkgver=3.1.4
|
||||
pkgrel=0
|
||||
pkgdesc="PHP 8.2 extension for parsing and working with email messages - PECL"
|
||||
url="https://pecl.php.net/package/mailparse"
|
||||
arch="all"
|
||||
license="PHP-3.01"
|
||||
_phpv=82
|
||||
_php=php$_phpv
|
||||
depends="$_php-mbstring"
|
||||
makedepends="$_php-dev"
|
||||
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
|
||||
builddir="$srcdir/$_extname-$pkgver"
|
||||
|
||||
build() {
|
||||
phpize$_phpv
|
||||
./configure --prefix=/usr --with-php-config=php-config$_phpv
|
||||
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/$_php/modules/mbstring.so \
|
||||
-d extension=modules/$_extname.so" TESTS=--show-diff
|
||||
}
|
||||
|
||||
package() {
|
||||
make INSTALL_ROOT="$pkgdir" install
|
||||
local _confdir="$pkgdir"/etc/$_php/conf.d
|
||||
install -d $_confdir
|
||||
echo "extension=$_extname" > $_confdir/60_$_extname.ini
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
f4d8fd72dddaf6697d0b33def626c9be2e16c27e018f8f4aa71e5375e73a2f1e17419328439159f58bd1d4047640296c24d6b315ad0695fd02218f98376a73a9 php-pecl-mailparse-3.1.4.tgz
|
||||
"
|
Loading…
Reference in New Issue
Block a user