diff --git a/srcpkgs/PopCorn/template b/srcpkgs/PopCorn/template index 4fefa7e320b..fe84490de6b 100644 --- a/srcpkgs/PopCorn/template +++ b/srcpkgs/PopCorn/template @@ -8,7 +8,7 @@ go_package="${go_import_path}/cmd/popcorn ${go_import_path}/cmd/popcornctl ${go_import_path}/cmd/statrepo ${go_import_path}/cmd/pqueryd" -hostmakedepends="gcc-go-tools git" +hostmakedepends="git" depends="snooze" short_desc="Package statistics system" maintainer="Michael Aldridge " @@ -16,7 +16,10 @@ license="MIT" homepage="https://github.com/the-maldridge/PopCorn" distfiles="https://github.com/the-maldridge/PopCorn/archive/v${version}.tar.gz" checksum=b25589802c5e1c277d2e9536add44704a012359b02d7fb4be1b4b0f11eb10d93 -nocross=yes + +if [ -z "$CROSS_BUILD" -o "$XBPS_TARGET_LIBC" != "musl" ]; then + hostmakedepends+=" gcc-go-tools" +fi system_accounts="_popcorn" _popcorn_homedir="/var/lib/popcorn"