wok view nimrod/receipt @ rev 25576

Up nimrod (1.6.12)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 13 17:57:27 2023 +0000 (12 months ago)
parents fff755dd0f58
children e483324933fa
line source
1 # SliTaz package receipt.
3 PACKAGE="nimrod"
4 VERSION="1.6.12"
5 CATEGORY="development"
6 SHORT_DESC="The Nimrod programming language."
7 MAINTAINER="admin@trixarian.net"
8 LICENSE="GPL"
9 TARBALL="nim-$VERSION.tar.xz"
10 WEB_SITE="https://min-lang.org/"
11 WGET_URL="https://nim-lang.org/download/$TARBALL"
12 PROVIDES="nim"
14 DEPENDS="glibc-base readline"
15 BUILD_DEPENDS="gcc83 glibc-dev readline-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://nim-lang.org/install.html 2>/dev/null | \
21 sed '/source/!d;s|.*nim-||;s|.tar.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i "s/uname -m/echo $ARCH/" build.sh
28 chmod +x build.sh
29 chmod +x install.sh
30 CC=gcc-83 ./build.sh
31 export PATH=$PATH:$src/bin
32 ./bin/nim c -d:release koch
33 ./bin/nim r ./koch.nim boot -d:release
34 ./install.sh $DESTDIR
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib $fs/usr/share/nim
41 cp -a $install/nim/bin $fs/usr
42 cp -a $install/nim/config $fs/etc
43 cp -a $install/nim/lib $fs/usr/lib/nim
44 cp -a $install/nim/nim.nimble $fs/usr/lib/nim
45 cp -a $install/nim/compile $fs/usr/lib/nim
46 cp -a $install/nim/doc $fs/usr/share/nim
47 }