aboutsummaryrefslogtreecommitdiffstats
path: root/main/php-mailparse/APKBUILD
blob: d000e8aca489e1379be854a2d458a6c30bccf70c (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=php-mailparse
_realname=mailparse
pkgver=2.1.6
pkgrel=2
pkgdesc="PHP Email message manipulation"
url="http://pecl.php.net/package/mailparse"
arch="all"
license="PHP"
depends=
depends_dev="php-dev"
makedepends="$depends_dev autoconf"
install=""
subpackages=""
source="http://pecl.php.net/get/$_realname-$pkgver.tgz
	mailparse.ini"

_builddir="$srcdir/$_realname-$pkgver"

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	phpize || return 1
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make INSTALL_ROOT="$pkgdir/" install || return 1
	install -D -m644 "$srcdir"/mailparse.ini \
		"$pkgdir"/etc/php/conf.d/mailparse.ini || return 1
}

md5sums="0f84e1da1d074a4915a9bcfe2319ce84  mailparse-2.1.6.tgz
9b8f5b99ee9d297ef1b439bacc2b3631  mailparse.ini"
sha256sums="73705197d2b2ee782efa5477eb2a21432f592c2cb05a72c3a037bbe39e02b5cc  mailparse-2.1.6.tgz
159dcc6fd7a64ccc960563a8befcd6e86b6e192b385bbb191e32c1dff6915b8d  mailparse.ini"
sha512sums="a7337dd2e99a953a55b38c236da95a6bd2950c2bca16fc0ddfec39be8b0ffe01007353fc7b562d0509e0bb1623c3d2b03935d1c98a07dcd9f0b14bb508bce374  mailparse-2.1.6.tgz
92a35efa955872d96b5d4ee2cbbec2338e53126b79efe0db352a568366d480cc50f25bb74da943ca55c23226216b694fbdbf890d7b8721f00b52cf310066d862  mailparse.ini"