Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/i486-stage1/perl
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-02-04 09:37:37 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2018-02-04 09:37:37 +0100
commit043b28ac8ebcaedac5d39bdf7f1f366b7818a666 (patch)
tree4f7784dc6b5530bbb7623d0ca2ddb4c71beb3c40 /i486-stage1/perl
parent7be0daa504d7c43e20dc5583350417bff8d0f474 (diff)
reorganized directory structure for package description, patches and other files
Diffstat (limited to 'i486-stage1/perl')
-rw-r--r--i486-stage1/perl/DESCR26
1 files changed, 26 insertions, 0 deletions
diff --git a/i486-stage1/perl/DESCR b/i486-stage1/perl/DESCR
new file mode 100644
index 0000000..80032bf
--- /dev/null
+++ b/i486-stage1/perl/DESCR
@@ -0,0 +1,26 @@
+# the official cross-compilation support in Perl is weird and needs a
+# running remote SSH access to the real machine:
+# https://stackoverflow.com/questions/5464538/cross-compile-perl-for-arm
+#
+# we go with https://arsv.github.io/perl-cross/
+sed -i '/source=/ a\ https://github.com/arsv/perl-cross/releases/download/1.1.8/perl-cross-1.1.8.tar.gz' PKGBUILD
+sed -i "/md5sums=/ a\ 'SKIP'" PKGBUILD
+sed -i '1!N; /prepare() *{\n *cd/ a \ tar --strip-components=1 -zxf ${srcdir}/perl-cross-1.1.8.tar.gz' PKGBUILD
+sed -i "s@./Configure -des@./configure --target=$TARGET_ARCH@" PKGBUILD
+
+# ./miniperl_top: no ./miniperl found; build it before using miniperl_top
+# we can build in parallel with this small trick: there is a dependency
+# missing from miniperl_top to miniperl it seems
+sed -i 's/^ \+make$/make miniperl; make/' PKGBUILD
+
+# rm: cannot remove '/home/cross/build/perl/pkg/perl/usr/bin/perl5.26.1': No such file or directory
+sed -i 's@\(rm "$pkgdir/usr/bin/perl$pkgver\)@#\1@g' PKGBUILD
+
+# the hook fails as we lack some findtools and sed
+# pacman does not have a --no-execute-hooks mode
+#Can't open /dev/null: No such file or directory
+#/usr/share/libalpm/scripts/detect-old-perl-modules.sh: line 8: find: command not found
+#/usr/share/libalpm/scripts/detect-old-perl-modules.sh: line 19: pacman: command not found
+#/usr/share/libalpm/scripts/detect-old-perl-modules.sh: line 19: wc: command not found
+#/usr/share/libalpm/scripts/detect-old-perl-modules.sh: line 25: wc: command not found
+#/usr/share/libalpm/scripts/detect-old-perl-modules.sh: line 13: sed: command not found