try to add armhf and arm64 ci build
[pcsx_rearmed.git] / .github / extract-foreign.sh
diff --git a/.github/extract-foreign.sh b/.github/extract-foreign.sh
new file mode 100755 (executable)
index 0000000..69aefa4
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash
+set -e
+
+url_base="http://ports.ubuntu.com/ubuntu-ports/"
+paths=`apt-cache show "$@" | grep '^Filename:' | awk '{print $2}'`
+for p in $paths; do
+  base=`basename $p`
+  wget -nv "${url_base}${p}"
+  echo "exctacting $base"
+  dpkg-deb -x "$base" .
+done