updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / scheme48-hg / PKGBUILD
blob4f57df8125ff299a66932f86774ad357145d0b4a
1 # Maintainer: Taylor Venable <taylor@metasyntax.net>
3 pkgname=scheme48-hg
4 pkgver=1592
5 pkgrel=1
6 pkgdesc="Scheme 48 is an implementation of Scheme"
7 arch=('i686' 'x86_64')
8 depends=('glibc')
9 makedepends=('scheme48' 'racket')
11 provides=('scheme48')
12 conflicts=('scheme48')
14 license=('BSD')
15 source=('makefile.patch')
16 md5sums=('ff2ba5d95489e472b17626e7dc22f396')
17 url='http://s48.org/'
19 _hgroot='http://www.s48.org/cgi-bin/hgwebdir.cgi'
20 _hgrepo='s48'
22 build() {
23   cd "$srcdir"
25   rm -rf build
26   hg clone "$_hgrepo" build
27   cd build
29   patch < "${srcdir}/makefile.patch"
31   # Taken from the autogen.sh script.  If you just call that script by itself,
32   # you can't invoke configure with arguments and you can't install (because it
33   # removes the Makefile when it's done).
35   ACLOCAL="aclocal -I m4" autoreconf -v -i
36   ./configure --prefix=/usr --docdir=/usr/share/doc/scheme48
37   rm -rf autom4te.cache
38   rm -f scheme48.image build/initial.image-32 build/initial.image-64 c/scheme48.h
39   make build/filenames.make
40   make i-know-what-i-am-doing
41   make c/scheme48.h
42   make build/initial.image-32 build/initial.image-64
45 package() {
46   cd "${srcdir}/build"
48   # This is so wrong. We need to get tex2page from the Racket installation to
49   # build the docs. Sigh.
51   rm -rf "${srcdir}/tmp"
52   mkdir -p "${srcdir}/tmp/texmf/tex/latex"
53   mkdir -p "${srcdir}/tmp/texmf/tex/plain"
54   cp /usr/lib/racket/collects/tex2page/tex2page.sty "${srcdir}/tmp/texmf/tex/latex"
55   cp /usr/lib/racket/collects/tex2page/tex2page.tex "${srcdir}/tmp/texmf/tex/plain"
56   mktexlsr "${srcdir}/tmp/texmf"
57   export TEXMFLOCAL="${srcdir}/tmp/texmf"
59   make DESTDIR="$pkgdir" install
60   install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
62   # Generic names not allowed - they would conflict with the generic names used
63   # by other packages. Sigh.
65   rm "${pkgdir}/usr/bin/scheme-r5rs"
66   rm "${pkgdir}/usr/bin/scheme-srfi-7"