summaryrefslogtreecommitdiff
path: root/archPackagesUpdate
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-07-10 13:11:40 +0200
committerErich Eckner <git@eckner.net>2019-07-10 13:11:40 +0200
commit88320dca0c7a3a266e78d5ad3cdc8c6fa154b636 (patch)
treecce5f7df707c61498e8d76c948ea948f49670e36 /archPackagesUpdate
parent55c0d3a0ee9f78c31c675f0d995bfb565415095b (diff)
downloadarchlinuxewe-88320dca0c7a3a266e78d5ad3cdc8c6fa154b636.tar.xz
archPackagesUpdate: build armv6h on the raspi
Diffstat (limited to 'archPackagesUpdate')
-rwxr-xr-xarchPackagesUpdate40
1 files changed, 40 insertions, 0 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate
index 9457e4403..27f05501a 100755
--- a/archPackagesUpdate
+++ b/archPackagesUpdate
@@ -324,6 +324,7 @@ if ${aufRechenknecht}; then
[ "${singleArch}" == "x86_64" ] || \
[ "${singleArch}" == "pentium4" ] || \
[ "${singleArch}" == "i686" ] || \
+ [ "${singleArch}" == "armv6h" ] || \
[ "${singleArch}" == "any" ] || \
continue
@@ -529,6 +530,11 @@ if ${aufRechenknecht}; then
cleanUp
exit 1
fi
+ cp makepkg{,-armv6h}.conf
+ if ! patch -p0 -i makepkg-armv6h.patch; then
+ cleanUp
+ exit 1
+ fi
cp makepkg-{i686,pentium4}.conf
if ! patch -p0 -i makepkg-pentium4.patch; then
cleanUp
@@ -640,6 +646,40 @@ if ${aufRechenknecht}; then
) | \
chrootUnpriv x86_64
err[${i}]=$?
+ elif [ "${arch}" = 'armv6h' ]; then
+ # armv6h is built on the raspberry pi
+ makepkg -Sf
+ err[${i}]=$?
+ if [ ${err[${i}]} -eq 0 ]; then
+ (
+ zcat "${paket}-${vers}.src.tar.gz"
+ cd "${tmpDir}"
+ tar -cf - makepkg-armv6h.conf
+ ) \
+ | gzip -c - \
+ | ssh eckner.net -p 15912 "$(
+ printf 'set -e\n'
+ ${cleanCache} && \
+ printf 'sudo pacman -Sc --noconfirm >&2\n'
+ printf 'sudo pacman -Sy >&2\n'
+ printf 'rm -rf --one-file-system build\n'
+ printf 'mkdir build\n'
+ printf 'cd build\n'
+ printf 'tar -xzif -\n'
+ printf 'cd "%s"\n' "${paket}"
+ printf 'makepkg %s --holdver --config ~/build/makepkg-armv6h.conf -fsr --noconfirm --asdeps >&2\n' \
+ "${log} ${checkMakepkg}"
+ printf 'tar -czf - *.pkg.tar.xz'
+ [ -n "${log}" ] && \
+ printf ' *.pkg.tar.xz-*.log'
+ printf '\n'
+ )" \
+ > "paket.tar.gz"
+ err[${i}]=$?
+ if [ ${err[${i}]} -eq 0 ]; then
+ tar -xzf paket.tar.gz
+ fi
+ fi
else
printf 'unbekannte Architektur "%s"\n' "${arch}"
err[${i}]=128