summaryrefslogtreecommitdiff
path: root/core/iputils/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'core/iputils/PKGBUILD')
-rw-r--r--core/iputils/PKGBUILD4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/iputils/PKGBUILD b/core/iputils/PKGBUILD
index 0d585e312..9894e02f8 100644
--- a/core/iputils/PKGBUILD
+++ b/core/iputils/PKGBUILD
@@ -7,7 +7,7 @@ pkgver=20101006
_traceroutever=1.4a12
pkgrel=2
pkgdesc="IP Configuration Utilities (and Ping)"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="http://www.linuxfoundation.org/en/Net:Iputils"
groups=('base')
@@ -31,12 +31,14 @@ build() {
# Doc fails to build (see FS#20251)
# As a temporary workaround, we use these man pages from Fedora & LFS
patch -Np1 -i ../iputils-s20101006-manpages.patch
+ find . -name Makefile | xargs sed -ri 's/^(CCOPT=.*)$/\1 '"${CFLAGS}"'/'
make
# build traceroute
# this is combined in this package because it's awkward as a separate package
cd "${srcdir}/traceroute-${_traceroutever}"
patch -Np1 -i ../permission-fix.patch
+ find . -name Makefile.in | xargs sed -ri 's/^(CCOPT=.*)$/\1 '"${CFLAGS}"'/'
./configure --prefix=/usr \
--sbindir=/bin \
--mandir=/usr/share/man