diff --git a/srcpkgs/rpcsvc-proto/template b/srcpkgs/rpcsvc-proto/template index 7c4ff304770..116b12ad5ad 100644 --- a/srcpkgs/rpcsvc-proto/template +++ b/srcpkgs/rpcsvc-proto/template @@ -11,7 +11,14 @@ changelog="https://raw.githubusercontent.com/thkukuk/rpcsvc-proto/master/ChangeL distfiles="https://github.com/thkukuk/rpcsvc-proto/releases/download/v${version}/rpcsvc-proto-${version}.tar.gz" checksum=867e46767812784d8dda6d8d931d6fabb30168abb02d87a2a205be6d5a2934a7 -nocross="runs rpsvc binary compiled against the target system on the host machine" +pre_build() { + if [ "$CROSS_BUILD" ]; then + make -C rpcgen CC=${CC_host} CFLAGS="${XBPS_CFLAGS}" LDFLAGS="${XBPS_LDFLAGS}" + cp rpcgen/rpcgen rpcgen/rpcgen-host + make -C rpcgen clean + sed -i -e 's!rpcgen/rpcgen!rpcgen/rpcgen-host!' rpcsvc/Makefile.in + fi +} post_install() { vlicense COPYING