diff options
author | Deposite Pirate | 2021-10-12 21:36:25 +0200 |
---|---|---|
committer | Deposite Pirate | 2021-10-12 21:36:25 +0200 |
commit | 6be0c95a279c7f4775a0fb4a039a68ee455d0306 (patch) | |
tree | 8cf5f49dc57b95ce5bbb7fbb7bb96888e630390c /php7-mailparse/PKGBUILD | |
parent | f8254ee0e6133872c6e482a36c1ce8570893c525 (diff) |
* Mailparse PHP plugin compiled for PHP 7.x
new file: php7-mailparse/.SRCINFO
new file: php7-mailparse/.gitignore
new file: php7-mailparse/PKGBUILD
new file: php7-mailparse/mailparse.ini
new file: php7-mailparse/package.xml
Diffstat (limited to 'php7-mailparse/PKGBUILD')
-rw-r--r-- | php7-mailparse/PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/php7-mailparse/PKGBUILD b/php7-mailparse/PKGBUILD new file mode 100644 index 0000000..ce7fd7b --- /dev/null +++ b/php7-mailparse/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Thomas Gerbet <thomas at gerbet dot me> +# Contributor: Johannes Schleifenbaum <johannes [at] js-webcoding [dot] de> + +pkgname=php7-mailparse +pkgver=3.1.1 +pkgrel=1 +pkgdesc="Extension for parsing and working with email messages (RFC822 and RFC2045)" +arch=('i686' 'x86_64') +url="https://pecl.php.net/package/mailparse" +license=('PHP') +depends=('php7>=7.2.0') +backup=('etc/php/conf.d/mailparse.ini') +source=("https://pecl.php.net/get/mailparse-${pkgver}.tgz" + 'mailparse.ini') +sha256sums=('c70f2650f81f7e234e5e2c8b079f3db04f38c269cf906c7846242fe9df92ce0a' + 'e3a71ee16492ff486ad4e6b0c87a3af93bdb081efa5baf78d5d47f290f7ec86a') + +build() { + cd "${srcdir}/mailparse-${pkgver}/" + + phpize + ./configure \ + --prefix=/usr \ + --libdir=/usr/lib/php7 \ + --with-php-config="/usr/bin/php-config7" + make +} + +check() { + cd "${srcdir}/mailparse-${pkgver}/" + + export REPORT_EXIT_STATUS=1 + export NO_INTERACTION=1 + export SKIP_ONLINE_TESTS=1 + make test +} + +package() { + cd "${srcdir}/mailparse-${pkgver}/" + + make INSTALL_ROOT="${pkgdir}/" install + install -D -m 644 "$srcdir"/mailparse.ini "$pkgdir"/etc/php7/conf.d/mailparse.ini +} |