aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php8-pecl-mailparse/APKBUILD
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2020-12-03 20:59:29 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-12-05 05:22:34 +0000
commit2b2700d0b91c01685241b97774566560777b6edb (patch)
tree5bea8f907383880990367a5a91f31711a868a63d /testing/php8-pecl-mailparse/APKBUILD
parenta83171cc48451731a37f9379e2fb805de08651d6 (diff)
downloadaports-2b2700d0b91c01685241b97774566560777b6edb.tar.gz
aports-2b2700d0b91c01685241b97774566560777b6edb.tar.bz2
aports-2b2700d0b91c01685241b97774566560777b6edb.tar.xz
testing/php8-pecl-mailparse: new aport
Diffstat (limited to 'testing/php8-pecl-mailparse/APKBUILD')
-rw-r--r--testing/php8-pecl-mailparse/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/php8-pecl-mailparse/APKBUILD b/testing/php8-pecl-mailparse/APKBUILD
new file mode 100644
index 0000000000..947ca52968
--- /dev/null
+++ b/testing/php8-pecl-mailparse/APKBUILD
@@ -0,0 +1,36 @@
+# 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"