Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-01-11 15:36:49 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2022-01-11 15:36:49 +0100
commitb72076d2f12b8c558057bf14a2f99b0c6ec8ff7e (patch)
tree9a4d065c369a544173efc5432aa180e6f5180459
parent8972a2f85a6d09d29b6e107d8e68b4422a880f22 (diff)
extra/namcap: patched tests for CARCH subarchitecture
-rw-r--r--extra/namcap/PKGBUILD10
-rw-r--r--extra/namcap/namcap-3.2.10-CARCH-test.patch12
2 files changed, 22 insertions, 0 deletions
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