blob: d585f7b8c55e95039accc7cf6b917f353386e144 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Maintainer: envolution
# Contributor: Peter <craven@gmx.net>
# Contributor: Jonathon Fernyhough <jonathon"manjaro+org>
# shellcheck shell=bash disable=SC2034,SC2154
pkgname=chez-scheme-git
_pkgname=ChezScheme
pkgver=10.1.0+r2430+gbb584d833
pkgrel=2
pkgdesc="Chez Scheme is an implementation of the Revised6 Report on Scheme (R6RS) with numerous language and programming environment extensions. (threaded build)"
arch=(i686 x86_64)
url="https://github.com/cisco/ChezScheme"
license=('Apache-2.0')
makedepends=('git' 'libx11' 'libutil-linux' 'ncurses')
provides=(chez-scheme)
conflicts=(petite-chez-scheme chez-scheme)
source=(
'git+https://github.com/cisco/ChezScheme.git'
'git+https://github.com/madler/zlib.git'
'git+https://github.com/nanopass/nanopass-framework-scheme.git'
'git+https://github.com/dybvig/stex.git'
'git+https://github.com/lz4/lz4.git'
'git+https://github.com/racket/zuo'
)
md5sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
pkgver() {
cd "$_pkgname"
_version=$(git tag --sort=-v:refname --list | grep '^v[0-9.]*$' | head -n1)
_commits=$(git rev-list --count HEAD)
_short_commit_hash=$(git rev-parse --short=9 HEAD)
echo "${_version#'v'}+r${_commits}+g${_short_commit_hash}"
}
prepare() {
git -C "${_pkgname}" submodule init
for _submodule in lz4 nanopass stex zlib zuo; do
git -C "${_pkgname}" config --local "submodule.third_party/${_submodule}.url" "${_submodule}"
done
git -C "${_pkgname}" -c protocol.file.allow='always' submodule update
}
build() {
cd "$_pkgname"
./configure --installprefix=/usr \
--temproot=$pkgdir \
--threads \
--installschemename=chez \
--installscriptname=chez-script \
--kernelobj
make
}
check() {
cd "$_pkgname"
#https://github.com/cisco/ChezScheme/blob/main/BUILDING
#test-one, test-some-fast, test-some, test, test-more, coverage
make test-one
}
package() {
cd "$_pkgname"
# bin/zuo ta6le install MAKE="make" DESTDIR="$pkgdir"
make install DESTDIR="$pkgdir"
}
# vim:set ts=2 sw=2 et:
|