wok annotate nim/receipt @ rev 23630

updated sarg and sarg-php (2.3.11 -> 2.4.0)
author Hans-G?nter Theisgen
date Fri Apr 17 08:01:58 2020 +0100 (2020-04-17)
parents
children 83b97236db32
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@23243 4 VERSION="0.19.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@23243 14 DEPENDS="gcc glibc-base readline"
Hans-G?nter@23243 15 BUILD_DEPENDS="gcc glibc-dev readline-dev"
Hans-G?nter@23243 16
Hans-G?nter@23243 17 # Rules to configure and make the package.
Hans-G?nter@23243 18 compile_rules()
Hans-G?nter@23243 19 {
Hans-G?nter@23243 20 sed -i "s/uname -m/echo $ARCH/" build.sh
Hans-G?nter@23243 21 chmod +x build.sh
Hans-G?nter@23243 22 chmod +x install.sh
Hans-G?nter@23243 23
Hans-G?nter@23243 24 ./build.sh &&
Hans-G?nter@23243 25 ./bin/nim c -d:release koch &&
Hans-G?nter@23243 26 ./koch boot -d:release &&
Hans-G?nter@23243 27 ./install.sh $DESTDIR
Hans-G?nter@23243 28 }
Hans-G?nter@23243 29
Hans-G?nter@23243 30 # Rules to gen a SliTaz package suitable for Tazpkg.
Hans-G?nter@23243 31 genpkg_rules()
Hans-G?nter@23243 32 {
Hans-G?nter@23243 33 mkdir -p $fs/usr/share/nim
Hans-G?nter@23243 34 mkdir -p $fs/usr/lib
Hans-G?nter@23243 35
Hans-G?nter@23243 36 cp -a $install/nim/bin $fs/usr
Hans-G?nter@23243 37 cp -a $install/nim/config $fs/etc
Hans-G?nter@23243 38 cp -a $install/nim/lib $fs/usr/lib/nim
Hans-G?nter@23243 39 cp -a $install/nim/doc $fs/usr/share/nim
Hans-G?nter@23243 40 }