From 5aba9ee4b6c999c69d62a898a705d0f6439de047 Mon Sep 17 00:00:00 2001 From: gesang Date: Fri, 19 Apr 2024 15:01:11 +0200 Subject: scmutils and mit-scheme-x11 added --- mit-scheme-x11/template | 22 ++++++++++++++++++++++ scmutils/template | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 mit-scheme-x11/template create mode 100644 scmutils/template diff --git a/mit-scheme-x11/template b/mit-scheme-x11/template new file mode 100644 index 0000000..c926dcd --- /dev/null +++ b/mit-scheme-x11/template @@ -0,0 +1,22 @@ +# Template file for 'mit-scheme' +pkgname=mit-scheme-x11 +version=12.1 +revision=1 +archs="x86_64" +build_wrksrc=src +build_style=gnu-configure +configure_args="--with-x --enable-x11" +#make_build_args="" +#make_install_args="" +#conf_files="" +#make_dirs="/var/log/dir 0755 root root" +hostmakedepends="make gcc m4 ncurses-devel" +makedepends="glibc libX11-devel" +depends="" +short_desc="MIT/GNU Scheme with X11 support" +maintainer="gesang " +license="GPL-2.0-or-later" +homepage="https://www.gnu.org/software/mit-scheme/" +#changelog="" +distfiles="https://ftp.gnu.org/gnu/mit-scheme/stable.pkg/12.1/mit-scheme-12.1-x86-64.tar.gz" +checksum=8cfbb21b0e753ab8874084522e4acfec7cadf83e516098e4ab788368b748ae0c diff --git a/scmutils/template b/scmutils/template new file mode 100644 index 0000000..cbc0711 --- /dev/null +++ b/scmutils/template @@ -0,0 +1,35 @@ +# Template file for 'scmutils' +pkgname=scmutils +version=20230902 +revision=1 +archs="x86_64" +#build_wrksrc= +#build_style=gnu-configure +#configure_args="" +#make_build_args="" +#make_install_args="" +#conf_files="" +#make_dirs="/var/log/dir 0755 root root" +hostmakedepends="" +makedepends="mit-scheme-x11" +depends="mit-scheme-x11" +short_desc="Scheme library for the book Structure and Interpretation of Classical Mechanics." +maintainer="gesang " +license="GPL-2.0-or-later" +homepage="http://mitpress.mit.edu/sicm/" +#changelog="" +distfiles=https://groups.csail.mit.edu/mac/users/gjs/6946/mechanics-system-installation/native-code/${pkgname}-${version}.tar.gz +checksum=8334120e722f538304b2d25f6b9e54650e4e7a5c7e5e3fc8daa508df521cec5a + +do_install() { + cd ${wrksrc} + target="${DESTDIR}/$(mit-scheme --batch-mode --no-init-file --eval "(write-string (->namestring (system-library-directory-pathname)))" "(exit)")" + install -Dm644 mechanics.com "$target/mechanics.com" + for src in $(find * -type f -name '*.bci'); do + install -Dm644 $src "$target/$src" + done + + install -Dm755 mechanics.sh "${DESTDIR}/usr/bin/mechanics" + + install -Dm644 COPYING "${DESTDIR}/usr/share/licenses/${pkgname}/LICENSE" +} -- cgit v1.2.3