From 176e07168d20e36ae12ddc44012ca929f6a29f43 Mon Sep 17 00:00:00 2001 From: rc-05 Date: Tue, 10 Mar 2020 13:38:21 +0100 Subject: [PATCH] New package: chez-exe-0.1.1 --- srcpkgs/chez-exe/template | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 srcpkgs/chez-exe/template diff --git a/srcpkgs/chez-exe/template b/srcpkgs/chez-exe/template new file mode 100644 index 00000000000..955d68ab53b --- /dev/null +++ b/srcpkgs/chez-exe/template @@ -0,0 +1,32 @@ +# Template file for 'chez-exe' +pkgname=chez-exe +version=0.1.1 +revision=1 +_chezversion=9.5.2 +archs="x86_64 i686" +build_style="gnu-makefile" +hostmakedepends="chez-scheme" +makedepends="libuuid-devel zlib-devel" +depends="gcc" +short_desc="Compile a chez-scheme program into a standalone executable" +maintainer="rc-05 " +license="custom:chez-exe" +homepage="https://github.com/rc-05/chez-exe" +distfiles="https://github.com/rc-05/chez-exe/archive/${version}.tar.gz" +checksum=82f66a41f054d08f36c8d8408d429a10faed2003483dbc1e3e1d3e699cca7319 + +pre_build() { + case "$XBPS_TARGET_MACHINE" in + x86_64) + ${wrksrc}/gen-config.ss --prefix /usr --scheme /usr/bin/scheme --bootpath /usr/lib/csv${_chezversion}/ta6le -lz + ;; + i686) + ${wrksrc}/gen-config.ss --prefix /usr --scheme /usr/bin/scheme --bootpath /usr/lib/csv${_chezversion}/ti3le -lz + ;; + esac +} + +post_install() { + vlicense LICENSE + vlicense NOTICE +}