diff options
| author | Ruben Beltran del Rio <jj@r.bdr.sh> | 2026-03-23 20:52:55 +0100 |
|---|---|---|
| committer | Rubén Beltrán del Río <jj@r.bdr.sh> | 2026-04-05 21:21:51 +0200 |
| commit | d9245d341ed1f258a3dd1073cdfa656115c5b26d (patch) | |
| tree | 17145053f56cd7a3c99377583b8b3a738931422d /scripts/build_arch.sh | |
| parent | 462d1458c0058ba9d41d6dc7538f6004b3de3c3e (diff) | |
Adapt rest of packaging to use mesonmeson
Diffstat (limited to 'scripts/build_arch.sh')
| -rwxr-xr-x | scripts/build_arch.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/scripts/build_arch.sh b/scripts/build_arch.sh new file mode 100755 index 0000000..602b31d --- /dev/null +++ b/scripts/build_arch.sh @@ -0,0 +1,33 @@ +#!/usr/bin/env bash + +set -euo pipefail + +container_image_prefix=$1 +distro=$2 +app_name=$3 +arch=$4 +channel=$5 + +version=`just version` +staging="$(mktemp -d)" + +just dist +cp _build/meson-dist/map-${version}.tar.xz "${staging}/" + +cp build-aux/arch/PKGBUILD "${staging}/" + +podman run --rm -v "${staging}:/build:Z" \ + ${container_image_prefix}:${distro} \ + bash -c " + mkdir -p /tmp/pkg + cp /build/*.tar.xz /tmp/pkg + cp /build/PKGBUILD /tmp/pkg + chown -R builder:builder /tmp/pkg + su builder -c 'cd /tmp/pkg && PKGEXT=.pkg.tar.gz makepkg -f' + mkdir -p /build/out + cp /tmp/pkg/map-${version}-1-${arch}.pkg.tar.gz /build/out/ + " + +mkdir -p dist +cp ${staging}/out/*.pkg.tar.gz "dist/${app_name}-${arch}-${channel}-${distro}.pkg.tar.gz" +rm -rf "${staging}" |