core/ocaml/PKGBUILD
2013-10-28 10:43:43 +00:00

36 lines
1.1 KiB
Bash

# maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
# contributions from Arch: https://www.archlinux.org/packages/extra/x86_64/ocaml/
pkgname=ocaml
pkgver=4.01.0
_pkgver=4.01
pkgrel=1
pkgdesc="A functional language with OO extensions"
arch=('x86_64')
license=('LGPL2' 'custom: QPL-1.0')
url="http://caml.inria.fr/"
depends=('gdbm')
makedepends=('tk' 'ncurses' 'libx11')
optdepends=('ncurses: advanced ncurses features' 'tk: advanced tk features')
source=("http://caml.inria.fr/distrib/ocaml-${_pkgver}/$pkgname-$pkgver.tar.gz")
options=('!makeflags' '!emptydirs')
md5sums=('04dfdd7da189462a4f10ec6530359cef')
build() {
cd $srcdir/$pkgname-$pkgver
./configure -prefix /usr -x11include
make world.opt
}
package() {
cd ${srcdir}/${pkgbase}-${pkgver}
make PREFIX=$pkgdir/usr MANDIR=$pkgdir/usr/share/man install
# Save >10MB with this one, makepkg only strips debug symbols.
#find ${pkgdir}/usr/lib -type f -name '*.so.*' -exec strip --strip-unneeded {} \;
# install license
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"
}