2 # Maintainer: Nicolas Hureau <kalenz@lse.epita.fr>
4 pkgname=ocaml-patched-binutils
7 pkgdesc="A functional language with OO extensions - patched to work with binutils >= 2.21"
9 license=('LGPL2' 'custom: QPL-1.0')
10 url="http://caml.inria.fr/"
12 makedepends=('tk' 'ncurses>=5.6-7' 'libx11')
13 optdepends=('ncurses: advanced ncurses features' 'tk: advanced tk features')
16 source=(http://caml.inria.fr/distrib/ocaml-3.12/ocaml-$pkgver.tar.gz
17 '0007-Fix-ocamlopt-w.r.t.-binutils-2.21.patch')
18 md5sums=('3ba7cc65123c3579f14e7c726d3ee782'
19 '8c664a0a346424ea2ec6fc6f713170c6')
20 options=('!makeflags' '!emptydirs')
23 cd $srcdir/ocaml-$pkgver
24 patch -Np1 -i ${srcdir}/0007-Fix-ocamlopt-w.r.t.-binutils-2.21.patch
25 ./configure -prefix /usr
27 make PREFIX=$pkgdir/usr MANDIR=$pkgdir/usr/share/man install
29 # Save >10MB with this one, makepkg only strips debug symbols.
30 find ${startdir}/pkg/usr/lib -type f -name '*.so.*' -exec strip --strip-unneeded {} \;
33 install -D -m 644 $startdir/src/ocaml-$pkgver/LICENSE $startdir/pkg/usr/share/licenses/ocaml/LICENSE