wok-current view nimrod/receipt @ rev 24819

libnsl: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 23 09:20:46 2022 +0000 (2022-03-23)
parents ad47999f35d7
children fff755dd0f58
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="http://www.nimrod-code.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 }