From 003727289cc45e29eff0c0c48ad0f9660f96644f Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 16 Jan 2022 15:02:47 +0000 Subject: separated patch, build, check and package stages --- repo/system/gmp.xibuild | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'repo/system/gmp.xibuild') diff --git a/repo/system/gmp.xibuild b/repo/system/gmp.xibuild index 2678312..8e1fe54 100644 --- a/repo/system/gmp.xibuild +++ b/repo/system/gmp.xibuild @@ -6,18 +6,22 @@ PKG_VER=6.2.1 SOURCE=https://gmplib.org/download/gmp/gmp-$PKG_VER.tar.xz DESC="a collection of mathematical libraries" -build () { +patch () { cp -v configfsf.guess config.guess cp -v configfsf.sub config.sub +} + +build () { ./configure --prefix=/usr --enable-cxx --disable-static --docdir=/usr/share/doc/gmp make make html +} +check () { make check 2>&1 | tee gmp-check-log awk '/# PASS:/{total+=$3} ; END{print total}' gmp-check-log - } package() { -- cgit v1.2.1