summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e80375d6e74ff44a1bf0af4ade06ff0a1beccdc2 (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
# Maintainer shenlebantongying <shenlebantongying@gmail.com>

_pkgname=ChezScheme
pkgname=chez-scheme-racket-git
pkgver=9.5
pkgrel=1
pkgdesc="Racket's fork of chez scheme with support for aach64."
url="https://github.com/racket/ChezScheme"
license=('Apache')

provides=(chez-scheme)
conflicts=(petite-chez-scheme)
replaces=(petite-chez-scheme)

arch=('i686'
      'x86_64'
      'armv6h'
      'aarch64')

source=()

md5sums=(
)

pkgver() {
    cd "$_pkgname"
    git log -1 --format='%cd.%h' --date=short | tr -d -
}

depends=('ncurses')
makedepends=('git' 'libx11' 'xorgproto')

prepare() {
    git clone --depth=1 https://github.com/racket/ChezScheme.git
    cd "$_pkgname"
    git submodule init
    git submodule update
}

build() {
    cd "$_pkgname"
    ./configure --pb --installprefix=/usr \
                     --installschemename=chez \
                     --installscriptname=chez-script \
                     --temproot="$pkgdir" \
                     --threads
    make
}

package() {
      make -C "$_pkgname" DESTDIR="$pkgdir"/ install
}