# HG changeset patch # User Hans-G?nter Theisgen # Date 1585127660 -3600 # Node ID fc660476a31bd4d19027f91e9ac0cf63b61a3413 # Parent dc1fa2db351e05307ac2556f381b957e05e392c6 created recipe for nim, successor of nimrod diff -r dc1fa2db351e -r fc660476a31b nim/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nim/receipt Wed Mar 25 10:14:20 2020 +0100 @@ -0,0 +1,40 @@ +# SliTaz package receipt. + +PACKAGE="nim" +VERSION="0.19.6" +CATEGORY="development" +SHORT_DESC="The Nim programming language." +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://www.nim-lang.org/" + +TARBALL="$PACKAGE-$VERSION.tar.xz" +WGET_URL="${WEB_SITE}download/$TARBALL" + +DEPENDS="gcc glibc-base readline" +BUILD_DEPENDS="gcc glibc-dev readline-dev" + +# Rules to configure and make the package. +compile_rules() +{ + sed -i "s/uname -m/echo $ARCH/" build.sh + chmod +x build.sh + chmod +x install.sh + + ./build.sh && + ./bin/nim c -d:release koch && + ./koch boot -d:release && + ./install.sh $DESTDIR +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/nim + mkdir -p $fs/usr/lib + + 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/doc $fs/usr/share/nim +}