summaryrefslogtreecommitdiff
path: root/community/ocaml-findlib/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/ocaml-findlib/PKGBUILD')
-rw-r--r--community/ocaml-findlib/PKGBUILD10
1 files changed, 7 insertions, 3 deletions
diff --git a/community/ocaml-findlib/PKGBUILD b/community/ocaml-findlib/PKGBUILD
index a78465650..83a8cf36a 100644
--- a/community/ocaml-findlib/PKGBUILD
+++ b/community/ocaml-findlib/PKGBUILD
@@ -8,7 +8,7 @@ pkgname=ocaml-findlib
pkgver=1.3.3
pkgrel=2
license=('MIT')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
pkgdesc='Objective Caml (OCaml) package manager'
url='http://projects.camlcity.org/projects/findlib.html'
depends=('ocaml')
@@ -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"
}