diff --git a/srcpkgs/nim/template b/srcpkgs/nim/template index 0c4f6c69207..6eda0dc8aa2 100644 --- a/srcpkgs/nim/template +++ b/srcpkgs/nim/template @@ -1,6 +1,6 @@ # Template file for 'nim' pkgname=nim -version=0.11.0 +version=0.11.2 revision=1 depends="gcc" hostmakedepends="libzip git ed" @@ -9,7 +9,7 @@ maintainer="allan " license="MIT" homepage="http://nim-lang.org/" distfiles="https://github.com/Araq/Nim/archive/v${version}.tar.gz" -checksum=3b594547ca673f37bd3ea28ab18954523652df862976f94a0dadae71f6ba27aa +checksum=8b46ca59461f870471060dcaff535c7203937c7ae67856f1ba027d000b5fa4c6 wrksrc=Nim-$version post_extract() { @@ -21,7 +21,7 @@ post_extract() { do_build() { case "$XBPS_TARGET_MACHINE" in arm*) - ed >/dev/null 2>&1 config/nim.cfg <<-EDIT + ed config/nim.cfg <<-EDIT ,s/^arm.linux.gcc.exe .*/arm.linux.gcc.exe = "$CC"/ ,s/^arm.linux.gcc.linkerexe .*/arm.linux.gcc.linkerexe = "$CC"/ w @@ -31,12 +31,17 @@ do_build() { cd csources && sh build.sh cd .. - - ed >/dev/null 2>&1 koch.nim <<-EDIT + ed koch.nim <<-EDIT ,s/-d:useLibzipSrc// w q EDIT + ed lib/wrappers/zip/libzip.nim <<-EDIT + ,s/.2|.1|.0/.4/ + w + q + EDIT + bin/nim c koch case "$XBPS_TARGET_MACHINE" in @@ -53,6 +58,5 @@ do_install() { fi vmkdir usr/bin - ln -s /usr/lib/nim/bin/nim \ - ${DESTDIR}/usr/bin/nim + ln -sf /usr/lib/nim/bin/nim ${DESTDIR}/usr/bin/nim }