From 82d3cc7f65e320a924d66798f9a029cda2cd62e4 Mon Sep 17 00:00:00 2001 From: Nathan Owens Date: Sun, 13 Dec 2020 12:57:34 -0600 Subject: [PATCH] splint: Fix cross-build --- srcpkgs/splint/template | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/srcpkgs/splint/template b/srcpkgs/splint/template index 4e3a93eaf29..455bceab070 100644 --- a/srcpkgs/splint/template +++ b/srcpkgs/splint/template @@ -1,21 +1,28 @@ # Template file for 'splint' pkgname=splint version=3.1.2 -revision=4 +revision=5 wrksrc="${pkgname}-${version}.orig" build_style=gnu-configure hostmakedepends="flex" makedepends="libfl-devel" short_desc="Secure Programming Lint" maintainer="Orphaned " +license="GPL-2.0-or-later" homepage="http://www.splint.org" -license="GPL-2" distfiles="${DEBIAN_SITE}/main/s/splint/${pkgname}_${version}+dfsg.orig.tar.xz" checksum=51cd7ba978a366ae1ededac2b927058fd5f45d5455e5a9d640b75ab4e45b748a disable_parallel_build=yes -nocross=yes post_patch() { vsed -i 's/__pid_t/pid_t/g' src/osd.c vsed -i -e '/RM.*[.]tab[.]h/d' src/Makefile.am src/Makefile.in } + +post_configure() { + # Test tries to run program. If cross-building + # this will fail. + if [ "$CROSS_BUILD" ]; then + vsed -i '/SUBDIRS/s|test||' Makefile + fi +}