updated on Fri Jan 13 08:00:32 UTC 2012
[aur-mirror.git] / glcaml / PKGBUILD
blob68d26a26f7c17c2a986166d3088fb981ee0cb78e
1 #Contributor: Massimiliano Brocchini <brocchini@netseven.it>
3 pkgname=glcaml
4 pkgver=20080215a
5 pkgrel=2
6 pkgdesc="OpenGL (1.1-2.1)/SDL bindings for Objective Caml (OCaml)"
7 arch=('i686' 'x86_64')
8 url="http://glcaml.sourceforge.net/"
9 license=('BSD' 'LGPL')
10 depends=('ocaml' 'sdl' 'mesa')
11 source=(http://downloads.sourceforge.net/glcaml/$pkgname.$pkgver.tar.gz)
12 md5sums=('76dc4d2901830c1ae96d2f23b2bd7b18')
14 build() {
15   cd $startdir/src/$pkgname
16   make || return 1
17   mkdir -p $startdir/pkg/usr/lib/ocaml/glcaml
18   "rm" install.txt makefile makefile.inc OCamlMakefile
19   mkdir -p $startdir/pkg/usr/share/licenses/glcaml
20   "mv" licence.txt $startdir/pkg/usr/share/licenses/glcaml/
21   mkdir -p  $startdir/pkg/usr/lib/ocaml/glcaml/{bin,doc,examples,glgen,lib}
22   for i in bin doc examples glgen lib; do
23         install -m 0644 $i/* $startdir/pkg/usr/lib/ocaml/glcaml/$i/;
24   done