summaryrefslogtreecommitdiff
path: root/extra/ocaml/PKGBUILD
blob: 7c47f3050e68c9f993615002aea9351420252515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# $Id: PKGBUILD 88099 2010-08-19 13:05:24Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname=ocaml	
pkgver=3.12.0
pkgrel=1
pkgdesc="A functional language with OO extensions"
arch=('i686' 'x86_64' 'mips64el')
license=('LGPL2' 'custom: QPL-1.0')
url="http://caml.inria.fr/"
depends=('gdbm')
makedepends=('tk' 'ncurses>=5.6-7' 'libx11')
optdepends=('ncurses: advanced ncurses features' 'tk: advanced tk features')
source=(http://caml.inria.fr/distrib/ocaml-3.12/$pkgname-$pkgver.tar.gz)
options=('!makeflags' '!emptydirs')

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure -prefix /usr 
  make world.opt || return 1
  make PREFIX=$pkgdir/usr MANDIR=$pkgdir/usr/share/man install || return 1
   
# Save >10MB with this one, makepkg only strips debug symbols.
 find ${startdir}/pkg/usr/lib -type f -name '*.so.*' -exec strip --strip-unneeded {} \;

# install license
install -D -m 644 $startdir/src/$pkgname-$pkgver/LICENSE $startdir/pkg/usr/share/licenses/ocaml/LICENSE
}
md5sums=('3ba7cc65123c3579f14e7c726d3ee782')