~sxmo-infra/sxmo-image-builder-nightly

102a77d3e0e4670787ef8b28271e25e7762a7f59 — Miles Alan 2 years ago 610d27a
Attempt to fix nightly build image; work around patching in upstream
1 files changed, 15 insertions(+), 13 deletions(-)

M .build.yml
M .build.yml => .build.yml +15 -13
@@ 1,5 1,5 @@
image: alpine/3.12
packages: [coreutils, procps, py3-requests, xz]
packages: [alpine-sdk coreutils, procps, py3-requests, xz]

environment:
  #DEVICE: pinebookpro


@@ 26,6 26,20 @@ tasks:
      mkdir -p ~/.config && cp sxmo-image-builder-nightly/pmbootstrap.cfg ~/.config/
      yes "" | ./pmbootstrap/pmbootstrap.py  --aports=$PWD/pmaports -q init   

  - build_sxmo-utils: |
      PKG=sxmo-utils
      cd pmaports/sxmo/$PKG
      git clone "http://git.sr.ht/~mil/$PKG" --depth 1 $PKG-999
      tar -czvf $PKG-999.tar.gz $PKG-999/
      sed -i -E 's#^pkgver=.+#pkgver=999#' APKBUILD
      sed -i -E "s#^pkgrel=.+#pkgrel=$(date +%s)#" APKBUILD
      sed -i -E '/^sha512sums=/ d' APKBUILD
      sed -i -E 's#^source="[^"]+#source=\"$PKG-999.tar.gz\"#' APKBUILD
      sed -i -E '/.patch$/d' APKBUILD
      abuild checksum
      cd
      ./pmbootstrap/pmbootstrap.py --details-to-stdout build --arch aarch64 $PKG

  # Lisgd is a little bit different because its in alpine
  - build_lisgd: |
      PKG=lisgd


@@ 95,18 109,6 @@ tasks:
      cd
      ./pmbootstrap/pmbootstrap.py --details-to-stdout build --arch aarch64 $PKG

  - build_sxmo-utils: |
      PKG=sxmo-utils
      cd pmaports/sxmo/$PKG
      git clone "http://git.sr.ht/~mil/$PKG" --depth 1 $PKG-999
      tar -czvf $PKG-999.tar.gz $PKG-999/
      sed -i -E 's#^pkgver=.+#pkgver=999#' APKBUILD
      sed -i -E "s#^pkgrel=.+#pkgrel=$(date +%s)#" APKBUILD
      sed -i -E '/^sha512sums=/ d' APKBUILD
      sed -i -E "s#^source=.+#source=\"$PKG-999.tar.gz\"#" APKBUILD
      sha512sum $PKG-999.tar.gz | xargs -ISUM echo 'sha512sums="SUM"' >> APKBUILD
      cd
      ./pmbootstrap/pmbootstrap.py --details-to-stdout build --arch aarch64 $PKG


  - build_image: |