updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / haxe / PKGBUILD
bloba44b0ac23450b64bed4302d58a57694ade077976
1 # Maintainer: Kyle Brady  <kyle at spark-gap dot com>
2 # Contributor: Patrick Hof <courts@offensivethinking.org>
3 # Contributor: Michael Fellinger <mf@rubyists.com>
5 pkgname=haxe
6 pkgver=2.08
7 pkgrel=2
8 pkgdesc="An open source programming language."
9 arch=('i686' 'x86_64')
10 url="http://haxe.org"
11 license=('GPL')
12 depends=('neko')
13 makedepends=('neko' 'ocaml' 'cvs' 'subversion' 'zlib')
14 options=('!strip')
15 install=${pkgname}.install
16 source=('http://haxe.org/file/install.ml'
17         'haxe.csh'
18         'haxe.sh')
19 md5sums=('b6f240860962274dc1fc60d7e2f3b066'
20          '5e0e656293e92a6437d76f2f406438b5'
21          '79cbf6ebdb3d56e980d1a17fa9cb3b2d')
23 build() {
24   cd "$srcdir"
25   sed -i 's+:anonymous+:anonymous:anonymous+' install.ml || return 1 
26   ocaml install.ml
28   install -d ${pkgdir}/usr/bin/ ${pkgdir}/opt/haxe/
29   cp -r haxe/std ${pkgdir}/opt/haxe/
30   cp bin/* ${pkgdir}/usr/bin/
31   find "$pkgdir" -name ".svn" -print0 | xargs -0 rm -rf
33   HAXE_LIBRARY_PATH=${srcdir}/haxe/std:.
34   bin/haxe haxe/std/tools/haxedoc/haxedoc.hxml
35   bin/haxe haxe/std/tools/haxelib/haxelib.hxml
37   install haxedoc haxelib ${pkgdir}/usr/bin/
38   install -D -T "${srcdir}/haxe.sh" "${pkgdir}/etc/profile.d/haxe.sh"
39   install -D -T "${srcdir}/haxe.csh" "${pkgdir}/etc/profile.d/haxe.csh"
42 # vim:set ts=2 sw=2 et: