mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03:00
37 lines
1.2 KiB
Text
37 lines
1.2 KiB
Text
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
|
|
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
|
|
pkgname=php7-mailparse
|
|
_pkgreal=mailparse
|
|
pkgver=3.0.1
|
|
_pkgver=${pkgver}
|
|
pkgrel=0
|
|
pkgdesc="Mailparse is an extension for parsing and working with email messages."
|
|
url="http://pecl.php.net/package/$_pkgreal"
|
|
arch="all"
|
|
license="PHP"
|
|
depends="php7-mbstring"
|
|
pecldepends="php7-dev autoconf"
|
|
makedepends="$pecldepends"
|
|
install=""
|
|
subpackages=""
|
|
source="http://pecl.php.net/get/$_pkgreal-$_pkgver.tgz"
|
|
|
|
builddir="$srcdir"/$_pkgreal-$_pkgver
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
phpize7 || return 1
|
|
./configure --prefix=/usr --with-php-config=php-config7 || return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make INSTALL_ROOT="$pkgdir"/ install || return 1
|
|
install -d "$pkgdir"/etc/php7/conf.d || return 1
|
|
echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/60_$_pkgreal.ini
|
|
}
|
|
|
|
md5sums="5ae0643a11159414c7e790c73a9e25ec mailparse-3.0.1.tgz"
|
|
sha256sums="42ee10de881a3739acf73ddef8800d80c3c57f70072f41bdb22e6e87ebc9cc62 mailparse-3.0.1.tgz"
|
|
sha512sums="42318d145c49644b0a1aea0e18aa3c6899f8ee2a8def7b9c22f7c02737426de22aba00a4c899a269b1d8e64c190654413d857622c882b92caa07f201620f1e61 mailparse-3.0.1.tgz"
|