summaryrefslogtreecommitdiff
path: root/community
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2013-01-06 11:02:01 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2013-01-06 11:02:01 -0500
commit8060829d57e359c471d5ce50bcea9770c905b71d (patch)
tree34b5a185332a654b883503b2a1dfc822f923f29e /community
parent5cfda3f8fe1d0b3a7ae64f1b1f4fed5f1eece0c8 (diff)
Fix build in ocaml-findlib
Diffstat (limited to 'community')
-rw-r--r--community/ocaml-findlib/PKGBUILD8
1 files changed, 6 insertions, 2 deletions
diff --git a/community/ocaml-findlib/PKGBUILD b/community/ocaml-findlib/PKGBUILD
index 77528d596..83a8cf36a 100644
--- a/community/ocaml-findlib/PKGBUILD
+++ b/community/ocaml-findlib/PKGBUILD
@@ -20,7 +20,11 @@ build() {
cd "$srcdir/findlib-$pkgver"
./configure -config /etc/findlib.conf -sitelib /usr/lib/ocaml -mandir /usr/share/man
- make all opt
+ if [ "${CARCH}" = "mips64el" ]; then
+ make all
+ else
+ make all opt
+ fi
}
package () {
@@ -32,6 +36,6 @@ package () {
sed -i 's/path=\"\/usr\/lib\/ocaml\"/path="\/usr\/lib\/ocaml:\/usr\/lib\/ocaml\/site-lib"/' \
"${pkgdir}/etc/findlib.conf"
- install -m755 src/findlib/ocamlfind_opt "$pkgdir/usr/bin/"
+ [ $CARCH != 'mips64el' ] && (install -m755 src/findlib/ocamlfind_opt "$pkgdir/usr/bin/")
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}