wok annotate nim/receipt @ rev 25337
suricata: set variable LIBS
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 23 20:18:41 2022 +0100 (2022-07-23) |
parents | 83b97236db32 |
children | 9d807f162a22 |
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/" |
Hans-G?nter@23243 | 10 |
Hans-G?nter@23243 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@23243 | 12 WGET_URL="${WEB_SITE}download/$TARBALL" |
Hans-G?nter@23243 | 13 |
Hans-G?nter@24996 | 14 DEPENDS="gcc83-lib-base glibc-base readline" |
Hans-G?nter@24996 | 15 BUILD_DEPENDS="gcc83 glibc-dev readline-dev" |
Hans-G?nter@23243 | 16 |
pascal@24427 | 17 # What is the latest version available today? |
pascal@24427 | 18 current_version() |
pascal@24427 | 19 { |
pascal@24427 | 20 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24427 | 21 sed '/released/!d;s|.*Version ||;s| released.*||;q' |
pascal@24427 | 22 } |
pascal@24427 | 23 |
Hans-G?nter@23243 | 24 # Rules to configure and make the package. |
Hans-G?nter@23243 | 25 compile_rules() |
Hans-G?nter@23243 | 26 { |
Hans-G?nter@23243 | 27 sed -i "s/uname -m/echo $ARCH/" build.sh |
Hans-G?nter@23243 | 28 chmod +x build.sh |
Hans-G?nter@23243 | 29 chmod +x install.sh |
Hans-G?nter@23243 | 30 |
Hans-G?nter@24996 | 31 export CC=gcc-83 |
Hans-G?nter@24996 | 32 export CXX=g++-83 |
Hans-G?nter@24996 | 33 |
Hans-G?nter@23243 | 34 ./build.sh && |
Hans-G?nter@23243 | 35 ./bin/nim c -d:release koch && |
Hans-G?nter@23243 | 36 ./koch boot -d:release && |
Hans-G?nter@23243 | 37 ./install.sh $DESTDIR |
Hans-G?nter@23243 | 38 } |
Hans-G?nter@23243 | 39 |
Hans-G?nter@23243 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@23243 | 41 genpkg_rules() |
Hans-G?nter@23243 | 42 { |
Hans-G?nter@23243 | 43 mkdir -p $fs/usr/share/nim |
Hans-G?nter@23243 | 44 mkdir -p $fs/usr/lib |
Hans-G?nter@23243 | 45 |
Hans-G?nter@23243 | 46 cp -a $install/nim/bin $fs/usr |
Hans-G?nter@23243 | 47 cp -a $install/nim/config $fs/etc |
Hans-G?nter@23243 | 48 cp -a $install/nim/lib $fs/usr/lib/nim |
Hans-G?nter@23243 | 49 cp -a $install/nim/doc $fs/usr/share/nim |
Hans-G?nter@23243 | 50 } |