diff --git a/srcpkgs/nim/template b/srcpkgs/nim/template index 0f3816fa227..6eda0dc8aa2 100644 --- a/srcpkgs/nim/template +++ b/srcpkgs/nim/template @@ -1,8 +1,6 @@ # Template file for 'nim' pkgname=nim version=0.11.2 -# version of the c-bootstrapping code -_cversion=0.9.4 revision=1 depends="gcc" hostmakedepends="libzip git ed" @@ -10,12 +8,16 @@ short_desc="The Nim programming language" maintainer="allan " license="MIT" homepage="http://nim-lang.org/" -distfiles="https://github.com/Araq/Nim/archive/v${version}.tar.gz - https://github.com/nim-lang/csources/archive/v${_cversion}.tar.gz" -checksum="8b46ca59461f870471060dcaff535c7203937c7ae67856f1ba027d000b5fa4c6 - e0b1a2d36e05dfea29948a76bdb052de183dd9bd99a8fecf0fce9ddad00476c4" +distfiles="https://github.com/Araq/Nim/archive/v${version}.tar.gz" +checksum=8b46ca59461f870471060dcaff535c7203937c7ae67856f1ba027d000b5fa4c6 wrksrc=Nim-$version +post_extract() { + cd $wrksrc + test -d csources || + git clone --depth=1 https://github.com/nim-lang/csources +} + do_build() { case "$XBPS_TARGET_MACHINE" in arm*)