summaryrefslogtreecommitdiffstats
path: root/main/php-mailparse/APKBUILD
blob: 7f112dea560536538078553264534ebe2f8f32c8 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=php-mailparse
_realname=mailparse
pkgver=2.1.5
pkgrel=1
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 --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="0c0134fb6f5903c8fb6c9e2205263d2c  mailparse-2.1.5.tgz
9b8f5b99ee9d297ef1b439bacc2b3631  mailparse.ini"