wok view nim/receipt @ rev 24522
ettercap: added dependency libpanel
author | Hans-G?nter Theisgen |
---|---|
date | Tue Feb 22 15:52:03 2022 +0100 (2022-02-22) |
parents | fc660476a31b |
children | b410cca81eae |
line source
1 # SliTaz package receipt.
3 PACKAGE="nim"
4 VERSION="0.19.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="gcc glibc-base readline"
15 BUILD_DEPENDS="gcc 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 ./build.sh &&
32 ./bin/nim c -d:release koch &&
33 ./koch 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/share/nim
41 mkdir -p $fs/usr/lib
43 cp -a $install/nim/bin $fs/usr
44 cp -a $install/nim/config $fs/etc
45 cp -a $install/nim/lib $fs/usr/lib/nim
46 cp -a $install/nim/doc $fs/usr/share/nim
47 }