summaryrefslogtreecommitdiff
path: root/community/mailutils/PKGBUILD
blob: c1649d573deaaec6ac45473927c9b7d6e6a7bb39 (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
# $Id: PKGBUILD 92555 2013-06-08 11:18:51Z bpiotrowski $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=mailutils
pkgver=2.2
pkgrel=7
pkgdesc="MUA command line tool (mailx)"
arch=(i686 x86_64)
url="http://www.gnu.org/software/mailutils/"
license=('GPL')
depends=('libldap' 'pam' 'gnutls')
makedepends=('emacs')
conflicts=('libsieve')
install=mailutils.install
options=(zipman !emptydirs)
source=(http://ftp.gnu.org/gnu/mailutils/mailutils-$pkgver.tar.bz2
	build-fix.patch)
md5sums=('834d2f616b922856127ecfe6c2de7d1a'
         'e83709ffdcdb257dfab443ef77c89574')

prepare() {
  cd "$srcdir/mailutils-$pkgver"
  patch -p1 <$srcdir/build-fix.patch
}

build() {
  cd "$srcdir/mailutils-$pkgver"
  ./configure --prefix=/usr --with-gdbm --with-gnutls \
	--libexecdir=/usr/lib/$pkgname --without-fribidi \
	--without-tcp-wrappers --sbindir=/usr/bin \
	--without-python --without-guile
  make -j1
}

package() {
  cd "$srcdir/mailutils-$pkgver"
  make -j1 DESTDIR=$pkgdir install
  rm -f $pkgdir/usr/share/info/dir
  mv $pkgdir/usr/bin/mail $pkgdir/usr/bin/gnu-mail
  mv $pkgdir/usr/share/man/man1/mail.1 $pkgdir/usr/share/man/man1/gnu-mail.1
  chown -R root:root $pkgdir
}