# Contributor: Carlo Landmeter # Maintainer: Michael Mason pkgname=mailx pkgver=8.1.1 pkgrel=0 pkgdesc="A commandline utility for sending email" url="http://www.opengroup.org/onlinepubs/007908799/xcu/mailx.html" arch="all" license="BSD" depends= depends_dev= makedepends="$depends_dev" install="" subpackages="$pkgname-doc" source="ftp://ftp.archlinux.org/other/mailx/$pkgname-$pkgver-fixed.tar.gz mailx-8.1.1.patch mailx-gcc4.patch" _builddir="$srcdir/$pkgname-$pkgver-fixed" prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p0 -i "$srcdir"/$i || return 1;; esac done sed -i 's#/man/#/share/man/#' Makefile } build() { cd "$_builddir" make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="63cad526ac64b57bcba2c0daaa1f3048 mailx-8.1.1-fixed.tar.gz d66b9f419c5d215271ed434f5d780843 mailx-8.1.1.patch 8716c7c7b3f5d348443230e2fe543bf6 mailx-gcc4.patch"