From edbe246fe93f11adcd98408e3d7cf7dce36de3a1 Mon Sep 17 00:00:00 2001 From: Michał Masłowski Date: Sat, 1 Jun 2013 11:57:57 +0200 Subject: Fix claws-mail-libre build on mips64el. valgrind is not available. setarch $CARCH won't work. The only purpose that I know for it should be handled differently, in makepkg frontends, not PKGBUILDs. --- libre/claws-mail-libre/PKGBUILD | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'libre/claws-mail-libre') diff --git a/libre/claws-mail-libre/PKGBUILD b/libre/claws-mail-libre/PKGBUILD index e37ffe283..2a0ce65ce 100644 --- a/libre/claws-mail-libre/PKGBUILD +++ b/libre/claws-mail-libre/PKGBUILD @@ -13,10 +13,11 @@ license=('GPL3') url="http://www.$_pkgname.org" depends=('gtk2' 'gnutls' 'startup-notification' 'enchant' 'gpgme' 'libetpan>=1.1' 'libsm' 'db' 'dbus-glib' 'hicolor-icon-theme' 'desktop-file-utils') -makedepends=('compface' 'spamassassin' 'bogofilter' 'valgrind' +makedepends=('compface' 'spamassassin' 'bogofilter' # dependencies for plugins 'libsoup' 'libgdata' 'webkitgtk2' 'libnotify' 'libcanberra' 'poppler-glib' 'pygtk') #'libchamplain' needed for geolocation plugin, disabled for now - most time it's not compatible with current gnome releases +[ "$CARCH" != "mips64el" ] && makedepends+=('valgrind') optdepends=('python2: needed for some tools and python plugin' 'perl: needed for some tools and perl plugin' 'spamassassin: adds support for spamfiltering' @@ -50,7 +51,7 @@ build() { sed -i 's@^#!.*python.*@#!/usr/bin/python2@' tools/*.py sed -i 's:python -c:python2 -c:g' configure - setarch $CARCH ./configure --prefix=/usr --disable-static \ + ./configure --prefix=/usr --disable-static \ --enable-enchant \ --enable-gnutls \ --enable-ldap \ @@ -60,16 +61,16 @@ build() { --enable-bogofilter-plugin \ --enable-jpilot \ #--help - setarch $CARCH make + make } package() { cd $srcdir/$_pkgname-$pkgver - setarch $CARCH make DESTDIR=$pkgdir install + make DESTDIR=$pkgdir install # build and install extra tools cd tools - setarch $CARCH make + make # all executables and .conf files ; only top directory find -maxdepth 1 -type f -and -perm /111 -or -name '*.conf' | while read i ; do install -D -m755 $i $pkgdir/usr/lib/$_pkgname/tools/$i -- cgit v1.2.3-54-g00ecf