aboutsummaryrefslogtreecommitdiffstats
path: root/testing/neko/APKBUILD
blob: cde0aea6be47a24970be959019cec1820d53ed85 (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
# Contributor: Jon Ong <jonongjs@rottenmage.com>
# Maintainer: Andy Li <andy@onthewings.net>
pkgname=neko
pkgver=2.2.0
pkgrel=0
pkgdesc="High-level dynamically typed programming language"
url="https://nekovm.org/"
arch="all"
license="LGPL"
depends=""
depends_dev="neko"
makedepends="apache2-dev cmake gc-dev gtk+2.0-dev linux-headers mariadb-dev
	mbedtls-dev ninja sqlite-dev"
options=""
install=""
subpackages="$pkgname-dev $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/HaxeFoundation/neko/archive/v${pkgver//./-}.tar.gz"

builddir="$srcdir/$pkgname-${pkgver//./-}"
build() {
	cd "$builddir"

	mkdir -p build || return 1
	cd build || return 1

	cmake "../" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DNEKO_JIT_DISABLE=ON -GNinja || return 1
	ninja || return 1
}

check() {
	cd "$builddir"
	ninja -C build test || return 1
}

package() {
	cd "$builddir"
	DESTDIR="$pkgdir" ninja -C build install || return 1
}
sha512sums="4bc89fddf4a5ae94e73843b06a3b6fe8de59d72922764276a5bd9d56daf6570525e842039bf704598b41e1de4a5fe08931adc4ca9730fe3333be0beb7a1ccaed  neko-2.2.0.tar.gz"