wok view nim/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents 83b97236db32
children 9d807f162a22
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/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="${WEB_SITE}download/$TARBALL"
14 DEPENDS="gcc83-lib-base 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 - $WEB_SITE 2>/dev/null | \
21 sed '/released/!d;s|.*Version ||;s| released.*||;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
31 export CC=gcc-83
32 export CXX=g++-83
34 ./build.sh &&
35 ./bin/nim c -d:release koch &&
36 ./koch boot -d:release &&
37 ./install.sh $DESTDIR
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/share/nim
44 mkdir -p $fs/usr/lib
46 cp -a $install/nim/bin $fs/usr
47 cp -a $install/nim/config $fs/etc
48 cp -a $install/nim/lib $fs/usr/lib/nim
49 cp -a $install/nim/doc $fs/usr/share/nim
50 }