mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
29 lines
1 KiB
Bash
29 lines
1 KiB
Bash
# $Id: PKGBUILD 51426 2009-09-08 11:32:07Z tpowa $
|
|
#Maintainer: Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
pkgname=ocaml
|
|
pkgver=3.11.1
|
|
pkgrel=2
|
|
pkgdesc="Ocaml compiler - Ocaml is a functional language with OO extensions"
|
|
arch=(i686 x86_64)
|
|
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.11/$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=('069aa55d40e548280f92af693f6c625a')
|