projects/aports·blob master · refs

40 lines · 1.2 KiB

1# Contributor: Fabio Ribeiro <[email protected]>
2# Maintainer: Andy Postnikov <[email protected]>
3pkgname=php83-pecl-mailparse
4_extname=mailparse
5pkgver=3.2.0
6pkgrel=0
7pkgdesc="PHP 8.3 extension for parsing and working with email messages - PECL"
8url="https://pecl.php.net/package/mailparse"
9arch="all"
10license="PHP-3.01"
11_phpv=83
12_php=php$_phpv
13depends="$_php-mbstring"
14makedepends="$_php-dev"
15source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
16builddir="$srcdir/$_extname-$pkgver"
17
18build() {
19 phpize$_phpv
20 ./configure --prefix=/usr --with-php-config=php-config$_phpv
21 make
22}
23
24check() {
25 # Tests require mbstring extension which is not bundled
26 make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test PHP_TEST_SHARED_EXTENSIONS=" \
27 -d extension=/usr/lib/$_php/modules/mbstring.so \
28 -d extension=modules/$_extname.so" TESTS=--show-diff
29}
30
31package() {
32 make INSTALL_ROOT="$pkgdir" install
33 local _confdir="$pkgdir"/etc/$_php/conf.d
34 install -d $_confdir
35 echo "extension=$_extname" > $_confdir/60_$_extname.ini
36}
37
38sha512sums="
39fb0f87f48d3e5c710db2fa281b014801eb7cdb4cf2136fd39e0dd5cb79bde1ecf005e2a9128a58899b275fa474b6d51ea54a2afcf2fdc9ed792270cfc25e4785 php-pecl-mailparse-3.2.0.tgz
40"