2019-03-23 08:02:21 +01:00
|
|
|
# Template file for 'joker'
|
|
|
|
pkgname=joker
|
2019-05-05 09:44:06 +02:00
|
|
|
version=0.12.3
|
2019-03-23 08:02:21 +01:00
|
|
|
revision=1
|
|
|
|
build_style=go
|
2019-04-07 09:37:06 +02:00
|
|
|
go_import_path=github.com/candid82/joker
|
2019-03-23 08:02:21 +01:00
|
|
|
hostmakedepends="git"
|
|
|
|
short_desc="Interpreted dialect of Clojure written in Go and Clojure(Script) linter"
|
|
|
|
maintainer="Dominic Monroe <monroef4@googlemail.com>"
|
|
|
|
license="EPL-1.0"
|
|
|
|
homepage="https://joker-lang.org/"
|
|
|
|
distfiles="https://github.com/candid82/joker/archive/v${version}.tar.gz"
|
2019-05-05 09:44:06 +02:00
|
|
|
checksum=74c67995be74c13d50b31d790113880d2d7b41d9013dddb68c91b04580b34564
|
2019-03-23 08:02:21 +01:00
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
hostmakedepends+=" joker"
|
|
|
|
fi
|
|
|
|
|
|
|
|
pre_build() {
|
|
|
|
JOKER="joker"
|
|
|
|
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
JOKER="../joker"
|
|
|
|
go generate ./...
|
|
|
|
go build
|
|
|
|
fi
|
|
|
|
|
|
|
|
(cd std; "$JOKER" --hashmap-threshold 8192 generate-std.joke)
|
|
|
|
}
|