wok-6.x view nimrod/receipt @ rev 25445

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