blob: cbc07117ebe1e1a89d7da5e1e8c40f49ea18696d (
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
32
33
34
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"
}
|