Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/i486-stage1/pacman/DESCR
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-02-05 21:46:28 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2018-02-05 21:46:28 +0100
commit7c7a001ee6b8642121d28191bcc913c2ea452900 (patch)
treef6c94f1fa52ea89994a1c2d2e2ee3f382d0bc287 /i486-stage1/pacman/DESCR
parentae49983b15e102ff4850e2b387ebafc839cdc9e5 (diff)
building up to pacman pre-requisites, pacman itself doesn't work yet
changed checkout method parameter, we have asp, yaourt and packages32 now
Diffstat (limited to 'i486-stage1/pacman/DESCR')
-rw-r--r--i486-stage1/pacman/DESCR25
1 files changed, 25 insertions, 0 deletions
diff --git a/i486-stage1/pacman/DESCR b/i486-stage1/pacman/DESCR
new file mode 100644
index 0000000..0ad0305
--- /dev/null
+++ b/i486-stage1/pacman/DESCR
@@ -0,0 +1,25 @@
+# prepare configure for cross-compilation
+sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD
+
+# minimal dependencies, we don't sign anything yet, gpgme and gnupg have
+# far too many dependencies which cannot be easily cross-compiled
+sed -i "1!N;/depends=/s/'gpgme'//" PKGBUILD
+sed -i 's@./configure@./configure --without-gpgme@' PKGBUILD
+
+# asciidoc is a makedepend, we can use the one on the host (this means
+# also we can pacman only rebuild on i486 itself after the whole python
+# zoo is installed)
+sed -i "/makedepends=/s/'asciidoc'//" PKGBUILD
+
+#TODO FROM HERE
+
+# craft a temporary i486 pacman.conf (no gpg and hard-coded architecture)
+cp pacman.conf.i686 pacman.conf.i486
+sed -i 's@^\(SigLevel\)@#\1@' pacman.conf.i486
+sed -i 's@^\(LocalFileSigLevel\)@#\1@' pacman.conf.i486
+# TODO: ADAPT sed -i 's@i686@i486@' pacman/PKGBUILD
+sed -i 's@./configure@./configure --host=i486-unknown-linux-gnu --build=x86_64-pc-linux-gnu@g' pacman/PKGBUILD
+# use 486 config and not 686 one
+sed -i 's@pacman.conf.i686@pacman.conf.i486@' pacman/PKGBUILD
+# some more architecture patching
+sed -i 's@i686@i486@g' pacman/PKGBUILD