void-packages/srcpkgs/joker/template
2019-04-07 05:00:08 -03:00

29 lines
727 B
Bash

# Template file for 'joker'
pkgname=joker
version=0.12.2
revision=1
build_style=go
go_import_path=github.com/candid82/joker
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"
checksum=aa50503dfc767a74e6c1b85dd80113561f9459d4ab04dbe785617190bafe3c43
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)
}