aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-mailparse/APKBUILD
blob: 6cda1a587f2bcb7bb62d61bb1d108231d554d4c0 (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
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-mailparse
_pkgreal=mailparse
pkgver=3.0.2
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"
makedepends="php7-dev autoconf"
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="4bd96a980013374f23a7461cc0a919aa  mailparse-3.0.2.tgz"
sha256sums="d81a6f8a48e43fca1c0f0d6c90d666830c24d584a23a60add43062aaf221843b  mailparse-3.0.2.tgz"
sha512sums="be04e15cf3577542447186d7ead4e31159c171c99de0a255d4ee2f6f760b80ecb44be056bd9089180601f622b9a71f4331f194e1adaa702d1d964009682896f6  mailparse-3.0.2.tgz"