From 5876bf5978e7edb06c4d215c37ef980095b3956b Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sat, 25 Jul 2015 23:04:32 +0200 Subject: [PATCH] Revert "nim: use http instead of git." This reverts commit 530b36f4871808584287c7122e6eb2034ff0a4cf. --- srcpkgs/nim/template | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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*)