From b72076d2f12b8c558057bf14a2f99b0c6ec8ff7e Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Tue, 11 Jan 2022 15:36:49 +0100 Subject: extra/namcap: patched tests for CARCH subarchitecture --- extra/namcap/PKGBUILD | 10 ++++++++++ extra/namcap/namcap-3.2.10-CARCH-test.patch | 12 ++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 extra/namcap/PKGBUILD create mode 100644 extra/namcap/namcap-3.2.10-CARCH-test.patch diff --git a/extra/namcap/PKGBUILD b/extra/namcap/PKGBUILD new file mode 100644 index 00000000..79b1e577 --- /dev/null +++ b/extra/namcap/PKGBUILD @@ -0,0 +1,10 @@ +# patch CARCH in tests for our sub-architectures +source+=('namcap-3.2.10-CARCH-test.patch') +sha512sums+=('4cda5df57993f21d5dcaf2a33411e76a3f8d971a2bf0b3bcf8c6c3ebecfc8255bc374abbef88b0e46bf34595c60c81cfcdff365877048ba67e57013698e5ba69') + +eval "$( + declare -f prepare | \ + sed ' + $ i patch -Np1 -i "$srcdir/namcap-3.2.10-CARCH-test.patch" \ + ' +)" diff --git a/extra/namcap/namcap-3.2.10-CARCH-test.patch b/extra/namcap/namcap-3.2.10-CARCH-test.patch new file mode 100644 index 00000000..cc2b656f --- /dev/null +++ b/extra/namcap/namcap-3.2.10-CARCH-test.patch @@ -0,0 +1,12 @@ +diff -rauN namcap-3.2.10/Namcap/tests/pkgbuild/test_missingvars.py namcap-3.2.10-CARCH-test-patch/Namcap/tests/pkgbuild/test_missingvars.py +--- namcap-3.2.10/Namcap/tests/pkgbuild/test_missingvars.py 2019-12-15 19:37:54.000000000 +0100 ++++ namcap-3.2.10-CARCH-test-patch/Namcap/tests/pkgbuild/test_missingvars.py 2022-01-11 13:26:27.101887688 +0100 +@@ -113,7 +113,7 @@ + license=('custom:chrome') + makedepends=('lynx') + depends=('chromium') +-if [ "$CARCH" = "i686" ]; then ++if [ "$CARCH" = "i686" -o "$CARCH" = "i486" -o "$CARCH" = "pentium4" ]; then + _arch="i386" + sha512sums=('31f63cd859203071e3b2a9b608bc80c67cac22f56c7de31d809f8c07cba6e076701c9649107db28a2fbef5ce1bf843e93b343a132058c3784d13a98492aa7bec') + elif [ "$CARCH" = "x86_64" ]; then -- cgit v1.2.3-70-g09d2