summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a31ee3e7cd6a8276fa20d3feec28de6409783c9 (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
# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contributor: Charles E. Hawkins <charlesthehawk at yahoo dot com>

pkgname=ocaml-otk
pkgver=0.7.1
pkgrel=1
pkgdesc="A bleeding edge fork of lablTk to implement new features of Tk."
arch=('i686' 'x86_64')
url="http://forge.ocamlcore.org/projects/otk"
license=('LGPL')
depends=('tcl' 'tk' 'ocaml>=4.0')
source=("http://forge.ocamlcore.org/frs/download.php/1515/otk-$pkgver.tar.gz")
md5sums=('cc1691a5a524f1c44b65edce5adc55be')

build() {
  cd "$srcdir/otk"
  make
  make opt
}

package() {
  mkdir -p "$pkgdir/usr/lib/ocaml/stublibs"
  mkdir "$pkgdir/usr/bin"
  cd "$srcdir/otk"
  make BINDIR="$pkgdir/usr/bin" STUBLIBDIR="$pkgdir/usr/lib/ocaml/stublibs" INSTALLDIR="$pkgdir/usr/lib/ocaml/otk" install
  make BINDIR="$pkgdir/usr/bin" STUBLIBDIR="$pkgdir/usr/lib/ocaml/stublibs" INSTALLDIR="$pkgdir/usr/lib/ocaml/otk" installopt
  install -Dm 644 compiler/copyright "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}