wok view nim/receipt @ rev 25682

Up libqcow (20240308)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 24 18:25:46 2024 +0000 (2 months ago)
parents b410cca81eae
children
line source
1 # SliTaz package receipt.
3 PACKAGE="nim"
4 VERSION="1.6.6"
5 CATEGORY="development"
6 SHORT_DESC="The Nim programming language."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.nim-lang.org/"
10 PROVIDES="nimrod"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="${WEB_SITE}download/$TARBALL"
15 DEPENDS="gcc83-lib-base glibc-base readline"
16 BUILD_DEPENDS="gcc83 glibc-dev readline-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed '/released/!d;s|.*Version ||;s| released.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i "s/uname -m/echo $ARCH/" build.sh
29 chmod +x build.sh
30 chmod +x install.sh
32 export CC=gcc-83
33 export CXX=g++-83
35 ./build.sh &&
36 ./bin/nim c -d:release koch &&
37 ./koch boot -d:release &&
38 ./install.sh $DESTDIR
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share/nim
45 mkdir -p $fs/usr/lib
47 cp -a $install/nim/bin $fs/usr
48 cp -a $install/nim/config $fs/etc
49 cp -a $install/nim/lib $fs/usr/lib/nim
50 cp -a $install/nim/doc $fs/usr/share/nim
51 }