wok annotate nimrod/receipt @ rev 25073
Up dropbear (2022.82)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 11 11:22:52 2022 +0000 (2022-06-11) |
parents | e3079653b462 |
children | 76d8d4e931f4 |
rev | line source |
---|---|
pascal@13236 | 1 # SliTaz package receipt. |
pascal@13236 | 2 |
pascal@13236 | 3 PACKAGE="nimrod" |
devl547@16411 | 4 VERSION="0.9.2" |
pascal@13236 | 5 CATEGORY="development" |
admin@13392 | 6 SHORT_DESC="The Nimrod programming language." |
admin@13392 | 7 MAINTAINER="admin@trixarian.net" |
pascal@15584 | 8 LICENSE="GPL" |
admin@13392 | 9 TARBALL="nimrod_$VERSION.zip" |
pascal@24909 | 10 WEB_SITE="https://min-lang.org/" |
admin@13392 | 11 WGET_URL="http://nimrod-code.org/download/$TARBALL" |
pascal@15584 | 12 |
admin@13392 | 13 DEPENDS="gcc glibc-base readline" |
admin@13392 | 14 BUILD_DEPENDS="gcc glibc-dev readline-dev" |
pascal@13236 | 15 |
pascal@24565 | 16 # What is the latest version available today? |
pascal@24565 | 17 current_version() |
pascal@24565 | 18 { |
pascal@24565 | 19 wget -O - https://nim-lang.org/install.html 2>/dev/null | \ |
pascal@24565 | 20 sed '/source/!d;s|.*nim-||;s|.tar.*||;q' |
pascal@24565 | 21 } |
pascal@24565 | 22 |
pascal@13236 | 23 # Rules to configure and make the package. |
pascal@13236 | 24 compile_rules() |
pascal@13236 | 25 { |
pascal@13236 | 26 cd $src |
pascal@13878 | 27 sed -i "s/uname -m/echo $ARCH/" build.sh |
admin@13392 | 28 chmod +x build.sh |
admin@13392 | 29 chmod +x install.sh |
pascal@13236 | 30 ./build.sh |
admin@13392 | 31 ./bin/nimrod c -d:release koch |
pascal@13236 | 32 ./koch boot -d:release |
pascal@13236 | 33 ./install.sh $DESTDIR |
pascal@13236 | 34 } |
pascal@13236 | 35 |
pascal@13236 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13236 | 37 genpkg_rules() |
pascal@13236 | 38 { |
pascal@13236 | 39 mkdir -p $fs/usr/share/nimrod $fs/usr/lib |
pascal@13878 | 40 cp -a $install/nimrod/bin $fs/usr |
pascal@13878 | 41 cp -a $install/nimrod/config $fs/etc |
pascal@13878 | 42 cp -a $install/nimrod/lib $fs/usr/lib/nimrod |
pascal@13878 | 43 cp -a $install/nimrod/doc $fs/usr/share/nimrod |
pascal@13236 | 44 } |