diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-01 23:52:07 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-02 01:53:18 +0200 |
commit | 0f74d86b871dc04ca55a1a48e296ddb1b5a4edb3 (patch) | |
tree | fbe9b94d364b4601755c9d35a59cfa330c911f87 /community/php7-mailparse | |
parent | 5c1365d1626d447b1799202a6b1a25dc9f3b781b (diff) | |
download | aports-0f74d86b871dc04ca55a1a48e296ddb1b5a4edb3.tar.bz2 aports-0f74d86b871dc04ca55a1a48e296ddb1b5a4edb3.tar.xz |
community/php7-mailparse: move from testing
Diffstat (limited to 'community/php7-mailparse')
-rw-r--r-- | community/php7-mailparse/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/community/php7-mailparse/APKBUILD b/community/php7-mailparse/APKBUILD new file mode 100644 index 0000000000..455ff64b12 --- /dev/null +++ b/community/php7-mailparse/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Fabio Ribeiro <fabiorphp@gmail.com> +# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com> +pkgname=php7-mailparse +_pkgreal=mailparse +pkgver=3.0.2 +pkgrel=1 +_phpver=${pkgname#php} +_phpver=${_phpver%%-*} +pkgdesc="PHP$_phpver extension for parsing and working with email messages" +url="http://pecl.php.net/package/mailparse" +arch="all" +license="PHP" +depends="php$_phpver-common php$_phpver-mbstring" +makedepends="php$_phpver-dev autoconf" +source="$pkgname-$pkgver.tgz::http://pecl.php.net/get/$_pkgreal-$pkgver.tgz" +options="!check" # tests fail b/c of not loaded mbstring module +builddir="$srcdir/$_pkgreal-$pkgver" + +build() { + cd "$builddir" + + phpize$_phpver + ./configure --prefix=/usr --with-php-config=php-config$_phpver + make +} + +package() { + local confdir="$pkgdir/etc/php$_phpver/conf.d" + cd "$builddir" + + make INSTALL_ROOT="$pkgdir" install + + mkdir -p "$confdir" + echo "extension=$_pkgreal.so" > "$confdir"/60_$_pkgreal.ini +} + +sha512sums="be04e15cf3577542447186d7ead4e31159c171c99de0a255d4ee2f6f760b80ecb44be056bd9089180601f622b9a71f4331f194e1adaa702d1d964009682896f6 php7-mailparse-3.0.2.tgz" |