summaryrefslogtreecommitdiff
path: root/community/mailutils/PKGBUILD
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-07-18 12:59:47 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-07-18 12:59:47 -0300
commit12c074375919d2de177eb9456352866902118a03 (patch)
tree3f6b2e5baadedbc7901bf3e614fd017ca8aaee52 /community/mailutils/PKGBUILD
parent598db82f25ffe3557e395a11f379de65af9e1ac1 (diff)
parentddddf9c453076a407bfdbf3e030e606f31ee2b86 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/dopewars/PKGBUILD community/virtualbox/PKGBUILD core/lvm2/PKGBUILD extra/aspell/PKGBUILD extra/gnome-python-extras/PKGBUILD extra/libproxy/PKGBUILD extra/live-media/PKGBUILD extra/ocaml/PKGBUILD extra/putty/PKGBUILD extra/python/PKGBUILD extra/ruby/PKGBUILD kde-unstable/calligra/PKGBUILD multilib-testing/lib32-mesa/PKGBUILD testing/mesa/PKGBUILD
Diffstat (limited to 'community/mailutils/PKGBUILD')
-rw-r--r--community/mailutils/PKGBUILD28
1 files changed, 18 insertions, 10 deletions
diff --git a/community/mailutils/PKGBUILD b/community/mailutils/PKGBUILD
index c2f51937b..832d800cf 100644
--- a/community/mailutils/PKGBUILD
+++ b/community/mailutils/PKGBUILD
@@ -1,18 +1,19 @@
-# $Id: PKGBUILD 34299 2010-12-05 22:48:06Z spupykin $
+# $Id: PKGBUILD 51689 2011-07-13 08:09:55Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=mailutils
pkgver=2.2
-pkgrel=1
+pkgrel=2
pkgdesc="MUA command line tool (mailx)"
arch=(i686 x86_64 'mips64el')
url="http://www.gnu.org/software/mailutils/"
license=('GPL')
-depends=(libldap tcp_wrappers pam gnutls guile)
-makedepends=('python2')
+depends=('libldap' 'pam' 'gnutls' 'guile')
+makedepends=('python2' 'emacs')
optdepends=('python2')
-conflicts=(libsieve)
+conflicts=('libsieve')
+install=mailutils.install
options=(zipman !emptydirs)
source=(http://ftp.gnu.org/gnu/mailutils/mailutils-$pkgver.tar.bz2)
md5sums=('834d2f616b922856127ecfe6c2de7d1a')
@@ -20,17 +21,24 @@ md5sums=('834d2f616b922856127ecfe6c2de7d1a')
build() {
cd "$srcdir/mailutils-$pkgver"
+ py2=`pacman -Q python2 | cut -d\ -f2 | cut -d. -f1-2`
+ py3=`pacman -Q python | cut -d\ -f2 | cut -d. -f1-2`
+
export PYTHON=/usr/bin/python2
export PYTHON_CONFIG=/usr/bin/python2-config
- [ -f Makefile ] || ./configure --prefix=/usr --with-gdbm --with-gnutls --libexecdir=/usr/lib/$pkgname --without-fribidi
+ export CFLAGS="$CFLAGS `pkg-config --cflags python-$py2`"
+ export LDFLAGS="$LDFLAGS `pkg-config --libs python-$py2`"
- py2=`pacman -Q python2 | cut -d\ -f2 | cut -d. -f1-2`
- py3=`pacman -Q python | cut -d\ -f2 | cut -d. -f1-2`
+ [ -f Makefile ] || ./configure --prefix=/usr --with-gdbm --with-gnutls \
+ --libexecdir=/usr/lib/$pkgname --without-fribidi \
+ --without-tcp-wrappers
# [ -z "$py3" ] || find -type f -name Makefile -exec sed -i "s|python$py3|python$py2|" {} \;
-
make -j1
- make -j1 DESTDIR=$pkgdir install
+}
+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