wok-current rev 23243

created recipe for nim, successor of nimrod
author Hans-G?nter Theisgen
date Wed Mar 25 10:14:20 2020 +0100 (2020-03-25)
parents dc1fa2db351e
children 8aef0091a430
files nim/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/nim/receipt	Wed Mar 25 10:14:20 2020 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="nim"
     1.7 +VERSION="0.19.6"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="The Nim programming language."
    1.10 +MAINTAINER="maintainer@slitaz.org"
    1.11 +LICENSE="MIT"
    1.12 +WEB_SITE="https://www.nim-lang.org/"
    1.13 +
    1.14 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.15 +WGET_URL="${WEB_SITE}download/$TARBALL"
    1.16 +
    1.17 +DEPENDS="gcc glibc-base readline"
    1.18 +BUILD_DEPENDS="gcc glibc-dev readline-dev"
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	sed -i "s/uname -m/echo $ARCH/" build.sh
    1.24 +	chmod +x build.sh
    1.25 +	chmod +x install.sh
    1.26 +
    1.27 +	./build.sh &&
    1.28 +	./bin/nim c -d:release koch &&
    1.29 +	./koch boot -d:release &&
    1.30 +	./install.sh $DESTDIR
    1.31 +}
    1.32 +
    1.33 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.34 +genpkg_rules()
    1.35 +{
    1.36 +	mkdir -p $fs/usr/share/nim
    1.37 +	mkdir -p $fs/usr/lib
    1.38 +
    1.39 +	cp -a $install/nim/bin		$fs/usr
    1.40 +	cp -a $install/nim/config	$fs/etc
    1.41 +	cp -a $install/nim/lib		$fs/usr/lib/nim
    1.42 +	cp -a $install/nim/doc		$fs/usr/share/nim
    1.43 +}