updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / ocaml-patched-binutils / PKGBUILD
blob934f239bde8470e3fbabf99adb581a294a66215b
1 # $Id$
2 # Maintainer: Nicolas Hureau <kalenz@lse.epita.fr>
4 pkgname=ocaml-patched-binutils
5 pkgver=3.12.0
6 pkgrel=2
7 pkgdesc="A functional language with OO extensions - patched to work with binutils >= 2.21"
8 arch=('i686' 'x86_64')
9 license=('LGPL2' 'custom: QPL-1.0')
10 url="http://caml.inria.fr/"
11 depends=('gdbm')
12 makedepends=('tk' 'ncurses>=5.6-7' 'libx11')
13 optdepends=('ncurses: advanced ncurses features' 'tk: advanced tk features')
14 provides=('ocaml')
15 conflicts=('ocaml')
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')
22 build() {
23   cd $srcdir/ocaml-$pkgver
24   patch -Np1 -i ${srcdir}/0007-Fix-ocamlopt-w.r.t.-binutils-2.21.patch
25   ./configure -prefix /usr
26   make world.opt
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 {} \;
32   # install license
33   install -D -m 644 $startdir/src/ocaml-$pkgver/LICENSE $startdir/pkg/usr/share/licenses/ocaml/LICENSE