summaryrefslogtreecommitdiffstats
path: root/main/php-phpmailer/APKBUILD
blob: 19a27a3392a9cf5260b7310cc2f7d9aa95fa861a (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
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer:  Timo Teräs <timo.teras@iki.fi>
pkgname=php-phpmailer
_pkgname=PHPMailer
pkgver=5.2.0
pkgrel=0
pkgdesc="PHP class for SMTP mailing"
url="http://code.google.com/a/apache-extras.org/p/phpmailer/"
arch="noarch"
license="LGPL"
depends="php>=5"
depends_dev=
makedepends="$depends_dev"
install=""
subpackages=""
source="http://phpmailer.apache-extras.org.codespot.com/files/PHPMailer_$pkgver.tgz"

_builddir="$srcdir/${_pkgname}_$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"
}

package() {
	cd "$_builddir"
	install -d -m755 "$pkgdir"/usr/share/pear
	install -D -m644 "$_builddir"/class.*.php "$pkgdir"/usr/share/pear || return 1
}

md5sums="aed567b80e6a3b3175d4ce27f3a9a243  PHPMailer_5.2.0.tgz"