summaryrefslogtreecommitdiff
path: root/i486-stage1
diff options
context:
space:
mode:
Diffstat (limited to 'i486-stage1')
-rw-r--r--i486-stage1/nasm/DESCR11
-rw-r--r--i486-stage1/syslinux/DESCR15
2 files changed, 26 insertions, 0 deletions
diff --git a/i486-stage1/nasm/DESCR b/i486-stage1/nasm/DESCR
new file mode 100644
index 0000000..7a7ecb8
--- /dev/null
+++ b/i486-stage1/nasm/DESCR
@@ -0,0 +1,11 @@
+# prepare configure for cross-compilation
+sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD
+
+# remove all fonts and ghostscript (we don't build the manual)
+sed -i "/makedepends=/s/perl-font-ttf//" PKGBUILD
+sed -i "/makedepends=/s/perl-sort-versions//" PKGBUILD
+sed -i "/makedepends=/s/fontconfig//" PKGBUILD
+sed -i "/makedepends=/s/adobe-source-sans-pro-fonts//" PKGBUILD
+sed -i "/makedepends=/s/ttf-liberation//" PKGBUILD
+sed -i "/makedepends=/s/ghostscript//" PKGBUILD
+sed -i "s/\(make -C doc\)/#\1/" PKGBUILD
diff --git a/i486-stage1/syslinux/DESCR b/i486-stage1/syslinux/DESCR
new file mode 100644
index 0000000..a542c39
--- /dev/null
+++ b/i486-stage1/syslinux/DESCR
@@ -0,0 +1,15 @@
+# disable python
+sed -i "/makedepends=/s/python2//" PKGBUILD
+sed -i "s/make PYTHON=python2/make/" PKGBUILD
+
+# take git from the host
+sed -i "/makedepends=/s/git//" PKGBUILD
+
+# no documentation
+sed -i "/makedepends=/s/asciidoc//" PKGBUILD
+
+# no upx compression
+sed -i "/makedepends=/s/upx//" PKGBUILD
+
+# use the cross compiler
+sed -i "s/\(make \$_targets\)/\1 CC=$TARGET_ARCH-gcc AS=$TARGET_ARCH-as LD=$TARGET_ARCH-ld AR=$TARGET_ARCH-ar/" PKGBUILD