From 0a07a494090e29e9d7d592d30c07cfa474a158ab Mon Sep 17 00:00:00 2001 From: Solitude Date: Wed, 27 Jun 2018 21:01:08 +0300 Subject: [PATCH] choosenim: build in release mode (#264) --- srcpkgs/choosenim/template | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/srcpkgs/choosenim/template b/srcpkgs/choosenim/template index 4ea58e9b18f..0ea4850ebd2 100644 --- a/srcpkgs/choosenim/template +++ b/srcpkgs/choosenim/template @@ -1,8 +1,8 @@ # Template file for 'choosenim' pkgname=choosenim version=0.3.2 -revision=1 -hostmakedepends="git nim libressl-devel" +revision=2 +hostmakedepends="git nim" makedepends="libressl-devel zlib-devel" depends="gcc" short_desc="The Nim toolchain installer" @@ -12,6 +12,10 @@ homepage="https://github.com/dom96/choosenim" distfiles="${homepage}/archive/v${version}.tar.gz" checksum=2478fcc75c5a147f63f755f700601ce25f8e2ca964b39ac3cb0d903d2fa22a2b +if [ -n "$CROSS_BUILD" ]; then + hostmakedepends+=" libressl-devel" +fi + do_build() { local arch args case "$XBPS_TARGET_MACHINE" in @@ -21,12 +25,12 @@ do_build() { esac if [ -n "$arch" ]; then cat > nim.cfg <