diff options
Diffstat (limited to 'user/gambit-c/APKBUILD')
-rw-r--r-- | user/gambit-c/APKBUILD | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/user/gambit-c/APKBUILD b/user/gambit-c/APKBUILD new file mode 100644 index 000000000..cdd97763b --- /dev/null +++ b/user/gambit-c/APKBUILD @@ -0,0 +1,56 @@ +# Contributor: Zach van Rijn <me@zv.io> +# Maintainer: Zach van Rijn <me@zv.io> +pkgname=gambit-c +pkgver=4.9.4 +_pkgver=$(printf "%s" "${pkgver}" | tr . _) +pkgrel=0 +pkgdesc="An efficient implementation of the Scheme programming language." +url="https://gambitscheme.org/" +arch="all" +license="Apache-2.0" +depends="" +makedepends="openssl-dev texinfo gnu-ghostscript" +subpackages="$pkgname-dev $pkgname-doc" +source="https://gambitscheme.org/$pkgver/gambit-v${_pkgver}.tgz + fix-incompatible-stat-usage.patch + remove-non-ascii-character-from-gambit-txi.patch + reproducibility.patch + " +builddir="$srcdir/gambit-$pkgver" + +build() { + # https://github.com/gambit/gambit/issues/249 + export CFLAGS="${CFLAGS} --param max-gcse-memory=300000000"; + + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --enable-single-host \ + --enable-c-opt \ + --enable-dynamic-clib \ + --enable-debug-c-backtrace \ + --enable-gcc-opts \ + --enable-shared \ + --enable-versioned-shared-libs \ + --disable-absolute-shared-libs \ + --enable-openssl + make + make modules +} + +check() { + make check +} + +package() { + make -j1 DESTDIR="$pkgdir" install +} + +sha512sums="3471062618949fe4e1eba19ca3170b8334065797d0c2f440050520ebca2af8bb6d57d9434b1756e5d67d4d4ec108c8e6a0c2900f01d8a35b71c979d776995ab1 gambit-v4_9_4.tgz +a878994ea7c40b301d30b4d05879c335ad42e1ca8c25387556691192b6945276d6d6ff017ff568302558b23c42c61f223bddb3596b8203fbee8edbf4fdd9b813 fix-incompatible-stat-usage.patch +45336179d3f61fa3d70c3517f368fd8ccd744b5981c4bbc2091ed0016e10940c1b24dd58ee4c8d59637d89865a4c6f0ea80dc49a8859b7a900331fdb0e1efe49 remove-non-ascii-character-from-gambit-txi.patch +133ef5442c1bfe51e57caecd509c12cdecd86cfb941114a5038fad2c3e2bda1770fde7e367561039d523db5ea9cba5cebae7a9ed9daca699863267e7224f1ad6 reproducibility.patch" |