summaryrefslogtreecommitdiff
path: root/update-archlinux32-package
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-24 11:53:48 +0100
committerErich Eckner <git@eckner.net>2019-01-24 11:53:48 +0100
commit0a20b01edd747ce5a401c48f8746d711c7043a1b (patch)
treeb1c2d1ebd94afc2a922574e6f2cea2474bd3fc7b /update-archlinux32-package
parent9c86a83bf1ebe2d0b5261a29350d1f94580c510f (diff)
downloaddevops-0a20b01edd747ce5a401c48f8746d711c7043a1b.tar.xz
update-archlinux32-package: learn python-pip-bootstrap (a checksum package w/o upstream)
Diffstat (limited to 'update-archlinux32-package')
-rwxr-xr-xupdate-archlinux32-package38
1 files changed, 38 insertions, 0 deletions
diff --git a/update-archlinux32-package b/update-archlinux32-package
index 4c99321..5418d09 100755
--- a/update-archlinux32-package
+++ b/update-archlinux32-package
@@ -92,6 +92,10 @@ case "${pkgname}" in
# an upstream package which is updated by solely updating its checksum
update_path='checksum'
;;
+ 'python-pip-bootstrap')
+ # a package without upstream which is updated by solely updating its checksum
+ update_path='checksum without upstream'
+ ;;
'linux'|'linux-lts'|'linux-zen')
# a kernel which exists upstream -> different config and checksums
update_path='kernel with upstream'
@@ -232,6 +236,40 @@ case ${update_path} in
fi
git -C "${git_repo_path}" commit "${repo}/${pkgname}/PKGBUILD" -m "${repo}/${pkgname}: new version => new checksum"
;;
+ 'checksum without upstream')
+ scp -r "${git_repo_path}/${repo}/${pkgname}" \
+ "arch32-test:${pkgname}"
+ sums=$(
+ ssh arch32-test '
+ cd "'"${pkgname}"'"
+ echo "arch+=(i686)" >> PKGBUILD
+ makepkg -g
+ ' \
+ | sed '
+ $! s/$/\\n/
+ ' | \
+ tr -d '\n'
+ )
+ echo "'$sums'"
+ sed -i '
+ /^\S\+sums\(_[^=]\+\)\?=(/{
+ :a
+ $b
+ N
+ s/^\S\+sums[^=]*=(.*)/'"${sums}"'/
+ }
+ ' "${git_repo_path}/${repo}/${pkgname}/PKGBUILD"
+ if ! ssh arch32-test '
+ cd "'"${pkgname}"'"
+ cat > PKGBUILD
+ echo "arch+=(i686)" >> PKGBUILD
+ makepkg --verifysource
+ ' < "${git_repo_path}/${repo}/${pkgname}/PKGBUILD"; then
+ >&2 echo 'something went wrong'
+ exit 1
+ fi
+ git -C "${git_repo_path}" commit "${repo}/${pkgname}/PKGBUILD" -m "${repo}/${pkgname}: new version => new checksum"
+ ;;
'kernel without upstream')
infos=$(
"${base_dir}/watch-versions" "${pkgname}"