updated on Fri Jan 6 08:01:17 UTC 2012
[aur-mirror.git] / ocaml-svn / PKGBUILD
blob1c5e88cafc8905826b6b83c2f5ee39a8ff7451af
1 # $Id$
2 # Maintainer: Nicolas Hureau <kalenz@lse.epita.fr>
4 pkgname=ocaml-svn
5 pkgver=11015
6 pkgrel=1
7 pkgdesc="A functional language with OO extensions - SVN trunk"
8 arch=('i686' 'x86_64')
9 url="http://caml.inria.fr/"
10 license=('LGPL2' 'custom: QPL-1.0')
11 groups=()
12 depends=('gdbm')
13 makedepends=('tk' 'ncurses>=5.6-7' 'libx11' 'gcc' 'subversion')
14 optdepends=('ncurses: advanced ncurses features' 'tk: advanced tk features')
15 provides=('ocaml')
16 conflicts=('ocaml')
17 replaces=()
18 backup=()
19 options=()
20 install=
21 source=()
22 noextract=()
23 md5sums=()
25 _svntrunk="http://caml.inria.fr/svn/ocaml/trunk"
26 _svnmod="ocaml-svn"
28 build() {
29   cd "$srcdir"
31   if [ -d $_svnmod/.svn ]; then
32     (cd $_svnmod && svn up -r $pkgver)
33   else
34     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
35   fi
37   msg "SVN checkout done or server timeout"
38   msg "Starting make..."
40   rm -rf "$srcdir/$_svnmod-build"
41   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
42   cd "$srcdir/$_svnmod-build"
44   # Build
45   ./configure -prefix /usr
46   make world.opt || return 1
49 package() {
50   cd "$srcdir/$_svnmod-build"
52   install -D -m 644 LICENSE $pkgdir/usr/share/licenses/ocaml/LICENSE
53   make PREFIX=$pkgdir/usr MANDIR=$pkgdir/usr/share/man install || return 1
55   # Save >10MB with this one, makepkg only strips debug symbols.
56   find $pkgdir/usr/lib -type f -name '*.so.*' -exec strip --strip-unneeded {} \;