summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5781afc5a5c92f55bafa492fd910c273720b7ae4 (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: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=mit-scheme-git
pkgver=12.0.50.r18599.9c6e1ee31c
pkgrel=1
pkgdesc="MIT/GNU Scheme from git"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/mit-scheme/"
license=('GPL')
depends=('mhash' 'libmcrypt' 'ncurses' 'libx11' 'postgresql-libs' 'termcap')
optdepends=('openssl: support for openssl')
makedepends=('git' 'mit-scheme')
provides=('mit-scheme')
conflicts=('mit-scheme')
source=("git+http://git.savannah.gnu.org/r/mit-scheme.git")
md5sums=('SKIP')
options=('!makeflags')

pkgver() {
  cd ${pkgname%-git}/src
  ver=$(grep AC_INIT configure.ac | cut -d \[ -f 3 | cut -d \] -f 1).r"$(git rev-list --count HEAD)"
  hsh=$(git rev-parse --short HEAD)
  echo ${ver}.${hsh}
}

build() {
  cd ${pkgname%-git}/src
  export LANG=C
  ./Setup.sh
  export CFLAGS=" -fcommon -Wno-error=use-after-free"
  ./configure --prefix=`pwd`/boot --with-x --enable-x11 
  make
  make install
  make distclean

  ./configure --prefix=/usr --with-x --enable-x11 --enable-native-code
  make
  cd "$srcdir"/${pkgname%-git}/doc
  autoconf
  ./configure --prefix=/usr --enable-pdf --disable-html
  make
}

check() {
  cd ${pkgname%-git}/src
  env FAST=y make check
}

package() {
  cd ${pkgname%-git}/src
  make DESTDIR="$pkgdir/" install
  cd "$srcdir"/${pkgname%-git}/doc
  make DESTDIR="$pkgdir/" install
}