blob: f1d41c3c28d5b629887426c89199ff9bae10d62d (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Contributor: Jon Ong <jonongjs@rottenmage.com>
# Maintainer: Andy Li <andy@onthewings.net>
pkgname=haxe
pkgver=3.4.4
_versuffix=
pkgrel=1
pkgdesc="Cross-platform toolkit and programming language"
url="https://haxe.org"
arch="x86_64 aarch64 ppc64le"
license="GPL MIT LGPL" # http://haxe.org/foundation/open-source.html
depends=""
makedepends="camlp4 ocaml neko-dev zlib-dev pcre-dev"
options="!strip !makeflags"
install=""
subpackages="$pkgname-doc"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/HaxeFoundation/haxe/archive/${pkgver}${_versuffix}.tar.gz
haxelib.tar.gz::https://github.com/HaxeFoundation/haxelib/archive/eeac8f4e77b23b120f27d27502f43589db26d143.tar.gz
ocamllibs.tar.gz::https://github.com/HaxeFoundation/ocamllibs/archive/0e6ea857c0f7df5e69628f949d0d33a3ce5552a8.tar.gz
haxe.sh
"
_builddir="$srcdir/$pkgname-$pkgver$_versuffix"
build() {
cd "$_builddir"
rmdir libs extra/haxelib_src || return 1
mv "$srcdir"/haxelib-* extra/haxelib_src || return 1
mv "$srcdir"/ocamllibs-* libs || return 1
# Check to see if ocamlopt exists. If not, bytecompile everything.
command -v ocamlopt && make -j1 || make -j1 BYTECODE=1 || return 1
make -j1 tools || return 1
}
check() {
cd "$_builddir"
./haxe -version || return 1
./haxelib version || return 1
}
package() {
cd "$_builddir"
install -d "$pkgdir"/usr/bin/ "$pkgdir"/usr/share/haxe/
install -m 755 haxe haxelib "$pkgdir"/usr/bin/
cp -rf std "$pkgdir"/usr/share/$pkgname/
install -Dm 644 extra/LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
install -Dm 644 "$srcdir/haxe.sh" "$pkgdir/etc/profile.d/haxe.sh"
}
sha512sums="e6f3dc4659ff785b8ffbe2fcc4fcee75afe66b848e1423f4e63cec383d2f99d54332d9f0812eb3b1931847f2429c4dbc64caedbf9afca750598292ce34f5522a haxe-3.4.4.tar.gz
711a58dae9311a2614467a04b294c6b0b3064849d4840f98d24c152a49abf856c79567aa810c59701e76d42db43359c04ae29a8b5d0404132b5cd107ae6b58e1 haxelib.tar.gz
a09864fa5b00210695f9d1d5f6b4c4f0a5f37ec7c5020671e32185e0f205e46535103673eaa1a585627e7aebc4b64185414c6cd4dd59f12bfda2191d372be3b5 ocamllibs.tar.gz
c756571769bcdb0d7040b44b3d486e445c56a01a8d23d26f668be19b8d147e9f324166f004872d04e912f329e45ad821672a0a365df4ba27fb1dc22bb34130a3 haxe.sh"
|