wok-current view nim/receipt @ rev 23329
updated perl-file-desktopentry (0.04 -> 0.22)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 30 17:44:58 2020 +0100 (2020-03-30) |
parents | |
children | 83b97236db32 |
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 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i "s/uname -m/echo $ARCH/" build.sh
21 chmod +x build.sh
22 chmod +x install.sh
24 ./build.sh &&
25 ./bin/nim c -d:release koch &&
26 ./koch boot -d:release &&
27 ./install.sh $DESTDIR
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/share/nim
34 mkdir -p $fs/usr/lib
36 cp -a $install/nim/bin $fs/usr
37 cp -a $install/nim/config $fs/etc
38 cp -a $install/nim/lib $fs/usr/lib/nim
39 cp -a $install/nim/doc $fs/usr/share/nim
40 }