# HG changeset patch # User Pascal Bellard # Date 1684000647 0 # Node ID 76d8d4e931f4cf928658a177d8bebedd0d4f93f4 # Parent 610b24fa3c653bf2e0f632de95c99df01884927a Up nimrod (1.6.12) diff -r 610b24fa3c65 -r 76d8d4e931f4 nimrod/receipt --- a/nimrod/receipt Sat May 13 16:42:09 2023 +0000 +++ b/nimrod/receipt Sat May 13 17:57:27 2023 +0000 @@ -1,17 +1,18 @@ # SliTaz package receipt. PACKAGE="nimrod" -VERSION="0.9.2" +VERSION="1.6.12" CATEGORY="development" SHORT_DESC="The Nimrod programming language." MAINTAINER="admin@trixarian.net" LICENSE="GPL" -TARBALL="nimrod_$VERSION.zip" +TARBALL="nim-$VERSION.tar.xz" WEB_SITE="https://min-lang.org/" -WGET_URL="http://nimrod-code.org/download/$TARBALL" +WGET_URL="https://nim-lang.org/download/$TARBALL" +PROVIDES="nim" -DEPENDS="gcc glibc-base readline" -BUILD_DEPENDS="gcc glibc-dev readline-dev" +DEPENDS="glibc-base readline" +BUILD_DEPENDS="gcc83 glibc-dev readline-dev" # What is the latest version available today? current_version() @@ -23,22 +24,24 @@ # Rules to configure and make the package. compile_rules() { - cd $src sed -i "s/uname -m/echo $ARCH/" build.sh chmod +x build.sh chmod +x install.sh - ./build.sh - ./bin/nimrod c -d:release koch - ./koch boot -d:release + CC=gcc-83 ./build.sh + export PATH=$PATH:$src/bin + ./bin/nim c -d:release koch + ./bin/nim r ./koch.nim boot -d:release ./install.sh $DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/share/nimrod $fs/usr/lib - cp -a $install/nimrod/bin $fs/usr - cp -a $install/nimrod/config $fs/etc - cp -a $install/nimrod/lib $fs/usr/lib/nimrod - cp -a $install/nimrod/doc $fs/usr/share/nimrod + mkdir -p $fs/usr/lib $fs/usr/share/nim + cp -a $install/nim/bin $fs/usr + cp -a $install/nim/config $fs/etc + cp -a $install/nim/lib $fs/usr/lib/nim + cp -a $install/nim/nim.nimble $fs/usr/lib/nim + cp -a $install/nim/compile $fs/usr/lib/nim + cp -a $install/nim/doc $fs/usr/share/nim }