summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eb78e6bec201579cbdb0debfafef7355dc2c6240 (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
# Maintainer: Peter <craven@gmx.net>
# Contributor: Jonathon Fernyhough <>

pkgname=chez-scheme-git
_pkgname=ChezScheme
pkgver=9.5.r65.gd8c2704
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')
depends=('ncurses')
makedepends=('git' 'libx11' 'xproto')
provides=(chez-scheme)
conflicts=(petite-chez-scheme)
replaces=(petite-chez-scheme)
source=('git+https://github.com/cisco/ChezScheme.git'
        'git+https://github.com/nanopass/nanopass-framework-scheme.git'
        'git+https://github.com/dybvig/stex.git'
        'git+https://github.com/madler/zlib.git')
md5sums=('SKIP'
         'SKIP'
         'SKIP'
         'SKIP')

pkgver() {
  cd "$_pkgname"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "$_pkgname"
  rmdir nanopass stex zlib
  ln -s ../nanopass-framework-scheme nanopass
  ln -s ../stex
  ln -s ../zlib
}

build() {
  cd "$_pkgname"
  ./configure --installprefix=/usr --temproot="$pkgdir" --threads
  make
}

package() {
  make -C "$_pkgname" DESTDIR="$pkgdir"/ install InstallSchemeName=chez-scheme
  install "$_pkgname/ta6le/boot/ta6le/kernel.o" "$pkgdir/usr/lib/csv9.5.1/ta6le/kernel.o"
  install "$_pkgname/ta6le/boot/ta6le/scheme.h" "$pkgdir/usr/lib/csv9.5.1/ta6le/scheme.h"
  # symlink includes pkgdir, redo
  rm "$pkgdir/usr/lib/csv9.5.1/ta6le/scheme-script.boot"
  ln -s "/usr/lib/csv9.5.1/ta6le/scheme.boot" "$pkgdir/usr/lib/csv9.5.1/ta6le/scheme-script.boot"
}

# vim:set ts=2 sw=2 et: