aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-mailparse/APKBUILD
blob: 299aaa0f75421bf339e2385e4ba5b834e1038d30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-mailparse
_pkgreal=mailparse
pkgver=3.0.2
pkgrel=2
_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 - mbstring not loaded
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"