-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
32 lines (28 loc) · 905 Bytes
/
template
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
# Template file for 'joker'
pkgname=joker
version=1.3.5
revision=1
build_style=go
go_import_path=github.com/candid82/joker
short_desc="Interpreted dialect of Clojure written in Go and Clojure(Script) linter"
maintainer="icp <pangolin@vivaldi.net>"
license="EPL-1.0"
homepage="https://joker-lang.org/"
changelog="https://github.com/candid82/joker/releases"
distfiles="https://github.com/candid82/joker/archive/refs/tags/v${version}.tar.gz"
checksum=f807a7378c78510fd7eba13607c3ec06c405ed08cc0605fade0fe2f7adeac101
if [ "$CROSS_BUILD" ]; then
if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then
broken="https://github.com/candid82/joker#cross-platform-builds"
fi
hostmakedepends+=" joker"
fi
pre_build() {
JOKER="joker"
CGO_ENABLED=0 GOARCH= go generate ./...
if [ -z "$CROSS_BUILD" ]; then
JOKER="../joker"
go build
fi
(cd std; "$JOKER" --hashmap-threshold 8192 generate-std.joke)
}