diff options
author | Marcel Hernandez <1ma@users.noreply.github.com> | 2021-02-17 23:07:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-17 23:07:34 +0100 |
commit | b07799060fc4245fba1e730eb63f8558c6ba61ad (patch) | |
tree | 2d522746ef612a2ee56022cee3563f28350e3ea2 /Ports/tinyscheme/package.sh | |
parent | bafb8b0be69c0452b7974aa4616976d572db0f21 (diff) | |
download | serenity-b07799060fc4245fba1e730eb63f8558c6ba61ad.zip |
Ports: Add tinyscheme 1.42 (#5387)
Diffstat (limited to 'Ports/tinyscheme/package.sh')
-rwxr-xr-x | Ports/tinyscheme/package.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Ports/tinyscheme/package.sh b/Ports/tinyscheme/package.sh new file mode 100755 index 0000000000..711f0d4397 --- /dev/null +++ b/Ports/tinyscheme/package.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port=tinyscheme +version=1.42 +files="https://downloads.sourceforge.net/project/tinyscheme/tinyscheme/tinyscheme-${version}/tinyscheme-${version}.tar.gz tinyscheme-${version}.tar.gz 273ac5ffe5305986b329e9045f2aea89" + +useconfigure=false + +build() { + run make scheme CC="i686-pc-serenity-gcc -fpic -pedantic" SYS_LIBS= FEATURES='-DUSE_NO_FEATURES=1 -DInitFile=\"/usr/local/include/tinyscheme/init.scm\"' +} + +install() { + run mkdir -p "${SERENITY_ROOT}/Build/Root/usr/local/bin" + run cp scheme "${SERENITY_ROOT}/Build/Root/usr/local/bin/tinyscheme" + run mkdir -p "${SERENITY_ROOT}/Build/Root/usr/local/include/tinyscheme" + run cp init.scm "${SERENITY_ROOT}/Build/Root/usr/local/include/tinyscheme/init.scm" +} |