summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a4a9ed8b5725189fbcdc5345c5e7de7d2c301d24 (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
# Contributor: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: Christian Babeux <christian.babeux@0x80.ca>
# Maintainer: sonofaglitch <sonofaglitch@mailbox.org>

pkgname=gambit-c
pkgver=4.9.7  # github.com/gambit/gambit/releases/latest
pkgrel=2
pkgdesc='Gambit Scheme system is a complete, portable, efficient and reliable implementation of the Scheme programming language.'
arch=(x86_64)
url='https://gambitscheme.org/'
license=(Apache LGPL)
options=(staticlibs !lto)
makedepends=(git)
source=("https://github.com/${pkgname/-c}/${pkgname/-c}/archive/refs/tags/v${pkgver}.tar.gz")
b2sums=('81c7848dc07bae8b23c97942c581f75abbc40070e7e60453f7d303c4310d93177d03effd2ea68176aab3b75a66489d2a3d3a9f682a44f90b62fb9e8558e9e7b1')

build() {
  cd "${pkgname/-c}-${pkgver}"
  ./configure \
    --docdir=/usr/share/doc/gambit-c \
    --enable-gcc-opts \
    --enable-single-host \
    --infodir=/usr/share/info \
    --libdir=/usr/lib/gambit-c \
    --prefix=/usr
  make
}

package() {
  make -C "${pkgname/-c}-${pkgver}" install DESTDIR="${pkgdir}"
}