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

community/php7-pecl-mailparse: modernize

parent deed1951
No related branches found
No related tags found
1 merge request!15231community/php7-pecl-mailparse: modernize
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-pecl-mailparse
_pkgreal=mailparse
_extname=mailparse
pkgver=3.1.1
pkgrel=0
pkgdesc="PHP extension for parsing and working with email messages - PECL"
pkgrel=1
pkgdesc="PHP 7 extension for parsing and working with email messages - PECL"
url="https://pecl.php.net/package/mailparse"
arch="all"
license="PHP-3.01"
depends="php7-mbstring"
makedepends="php7-dev"
source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
builddir="$srcdir/$_pkgreal-$pkgver"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir/$_extname-$pkgver"
provides="php7-mailparse=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-mailparse" # for backward compatibility
......@@ -25,16 +25,14 @@ 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/php7/modules/mbstring.so \
-d extension=modules/$_pkgreal.so"
-d extension=modules/$_extname.so" TESTS=--show-diff
}
package() {
local confdir="$pkgdir/etc/php7/conf.d"
make INSTALL_ROOT="$pkgdir" install
mkdir -p "$confdir"
echo "extension=$_pkgreal.so" > "$confdir"/60_$_pkgreal.ini
local _confdir="$pkgdir"/etc/php7/conf.d
install -d $_confdir
echo "extension=$_extname" > $_confdir/60_$_extname.ini
}
sha512sums="01ddb8d4d27a74c14f70b02b49322c60fc79affab374205fee91b9da21e5148e08dba024f6bc620e4f26c2c937675e09092c52ca69172d2f7797c3e2bf374bee php7-pecl-mailparse-3.1.1.tgz"
sha512sums="01ddb8d4d27a74c14f70b02b49322c60fc79affab374205fee91b9da21e5148e08dba024f6bc620e4f26c2c937675e09092c52ca69172d2f7797c3e2bf374bee php-pecl-mailparse-3.1.1.tgz"
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