summaryrefslogtreecommitdiff
path: root/scmutils
diff options
context:
space:
mode:
authorgesang <gesang@itinerariummentis.org>2024-04-19 15:01:11 +0200
committergesang <gesang@itinerariummentis.org>2024-04-19 15:01:11 +0200
commit5aba9ee4b6c999c69d62a898a705d0f6439de047 (patch)
treef787aa3219d40577a41f5b0d7ca46db4e4061510 /scmutils
parentac74225375835216c5fb2b61a75b4ad7b18e9552 (diff)
scmutils and mit-scheme-x11 added
Diffstat (limited to 'scmutils')
-rw-r--r--scmutils/template35
1 files changed, 35 insertions, 0 deletions
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 <gesang@itinerariummentis.org>"
+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"
+}