newpkg: ocaml-bigarray-compat (ocaml-ctypes dep)
[arch-packages.git] / guile2.0 / trunk / PKGBUILD
blob541366707a14546e6594db221281ad8d8ee72ff5
1 # Maintainer:  Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
3 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
5 pkgname=guile2.0
6 _pkgname=guile
7 pkgver=2.0.14
8 pkgrel=6
9 pkgdesc='Portable, embeddable Scheme implementation written in C'
10 url='https://www.gnu.org/software/guile/'
11 arch=(x86_64)
12 license=(GPL)
13 depends=(gmp libltdl ncurses texinfo libunistring gc libffi)
14 source=(https://ftp.gnu.org/pub/gnu/$_pkgname/$_pkgname-$pkgver.tar.gz{,.sig})
15 validpgpkeys=('3CE464558A84FDC69DB40CFB090B11993D9AEBB5' # Ludovic Courtès <ludo@gnu.org>
16               'FF478FB264DE32EC296725A3DDC0F5358812F8F2') # Andy Wingo
17 md5sums=('333b6eec83e779935a45c818f712484e'
18          'SKIP')
20 build() {
21   cd $_pkgname-$pkgver
22   ./configure --prefix=/usr \
23     --disable-static  \
24     --disable-error-on-warning \
25     --program-suffix=2.0
26   make
29 package() {
30   make -C $_pkgname-$pkgver DESTDIR="$pkgdir" install
31   rm "$pkgdir"/usr/lib/libguile-2.?.so.*-gdb.scm
33   sed -i '1s/guile/guile2.0/' -i "$pkgdir/usr/bin/guile-config2.0"
34   mv "$pkgdir"/usr/share/aclocal/guile.m4 "$pkgdir"/usr/share/aclocal/guile20.m4
35   rm -rf "$pkgdir"/usr/share/info