# Contributor: Timo Teräs # Maintainer: Timo Teräs _php=php5 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" 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"