aboutsummaryrefslogtreecommitdiffstats
path: root/main/php-mailparse/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2011-05-11 22:39:51 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2011-05-11 22:40:21 +0000
commitfaed188fa85de352122d9abe9c67861cc49bf08a (patch)
tree2d241b547b019d97cdc1c760dc482eca0c66d379 /main/php-mailparse/APKBUILD
parent019fe40039101dfad02208beeeae2859a937e7e8 (diff)
downloadaports-faed188fa85de352122d9abe9c67861cc49bf08a.tar.bz2
aports-faed188fa85de352122d9abe9c67861cc49bf08a.tar.xz
main/php-mailparse: new aport
Diffstat (limited to 'main/php-mailparse/APKBUILD')
-rw-r--r--main/php-mailparse/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/main/php-mailparse/APKBUILD b/main/php-mailparse/APKBUILD
new file mode 100644
index 0000000000..d448f02cf8
--- /dev/null
+++ b/main/php-mailparse/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=php-mailparse
+_realname=mailparse
+pkgver=2.1.5
+pkgrel=0
+pkgdesc="PHP Email message manipulation"
+url="http://pecl.php.net/package/mailparse"
+arch="all"
+license="PHP"
+depends=
+depends_dev="php-dev"
+makedepends="$depends_dev"
+install=""
+subpackages=""
+source="http://pecl.php.net/get/$_realname-$pkgver.tgz"
+
+_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
+}
+
+md5sums="0c0134fb6f5903c8fb6c9e2205263d2c mailparse-2.1.5.tgz"