From 0eb069f3b02f788043d7d6c32d536f18d6e2744b Mon Sep 17 00:00:00 2001 From: Michał Masłowski Date: Fri, 1 Feb 2013 22:28:18 +0100 Subject: Fix claws-mail-libre build on mips64el. Valgrind is not available yet. Don't use setarch $CARCH, it's useful only on x86 (we don't have a MIPS32 port and the kernel architecture names are different than $CARCH) and could be handled outside the PKGBUILD. --- libre/claws-mail-libre/PKGBUILD | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libre/claws-mail-libre/PKGBUILD b/libre/claws-mail-libre/PKGBUILD index 7a093b29a..ee7019130 100644 --- a/libre/claws-mail-libre/PKGBUILD +++ b/libre/claws-mail-libre/PKGBUILD @@ -32,8 +32,8 @@ makedepends=( bogofilter compface spamassassin - valgrind ) +[ "$CARCH" != "mips64el" ] && makedepends+=(valgrind) optdepends=( 'python2: needed for some tools' 'perl: needed for some tools' @@ -67,7 +67,7 @@ build() { sed -i 's@^#!.*python.*@#!/usr/bin/python2@' tools/*.py - setarch $CARCH ./configure --prefix=/usr\ + ./configure --prefix=/usr\ --disable-dillo-viewer-plugin\ --disable-static\ --enable-bogofilter-plugin\ @@ -79,16 +79,16 @@ build() { --enable-pgpmime-plugin\ --enable-spamassassin-plugin - setarch $CARCH make + make } package() { cd $srcdir/$pkgbase-$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/$pkgbase/tools/$i -- cgit v1.2.3-54-g00ecf