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